Commit 0f3a60e4 authored by Matthias Larisch's avatar Matthias Larisch

Merge branch 'production'

parents 0d1a8663 f420ba3c
Pipeline #22140153 failed with stages
in 2 minutes and 29 seconds
......@@ -27,6 +27,8 @@
- configure dependency injection as yaml, not PHP !347 @NerdyProjects
## Dev/Test/CI stuff
# 2018-05-14 Hotfix
- Fetching emails to platform mail addresses is more robust against broken mail dates now. #195
# 2018-03-14 Hotfix for 2018-02-28
- Events can be accepted or denied by non event admins again. !342 #418 by @NerdyProjects
......
#!/bin/bash
cd /var/www/lmr-prod/www
FS_ENV=prod php run.php Mails mailboxupdate > /var/www/lmr-prod/log/fs_mails_mailboxupdate.log
cd /home/deploy/production-deploy/current/
FS_ENV=prod php run.php Mails mailboxupdate
#!/bin/bash
cd /var/www/lmr-prod/www/
FS_ENV=prod php run.php Maintenance daily > /var/www/lmr-prod/log/fs_maintenance_daily.log
cd /home/deploy/production-deploy/current/
FS_ENV=prod php run.php Maintenance daily
#!/bin/bash
cd /var/www/lmr-prod/www/
FS_ENV=prod php run.php Stats bezirke > /var/www/lmr-prod/log/fs_stats_bezirke.log
FS_ENV=prod php run.php Stats betriebe > /var/www/lmr-prod/log/fs_stats_betriebe.log
FS_ENV=prod php run.php Stats foodsaver > /var/www/lmr-prod/log/fs_stats_foodsaver.log
cd /home/deploy/production-deploy/current/
FS_ENV=prod php run.php Stats bezirke
FS_ENV=prod php run.php Stats betriebe
FS_ENV=prod php run.php Stats foodsaver
......@@ -152,10 +152,14 @@ class MailsControl extends ConsoleControl
if (!isset($have_send[$id])) {
$have_send[$id] = [];
}
$date = null;
try {
$date = $msg->getDate();
} catch (\Exception $e) {
echo 'Error parsing date: ' . $e->getMessage() . ", continuing with 'now'\n";
}
if($date === null)
{
$date = new \DateTime();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment