show dates/times in user's timezone

This commit is contained in:
Nabeel Shahzad
2017-12-23 11:58:17 -06:00
parent eb6e624a4d
commit 3b8621371a
11 changed files with 110 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ class DatabaseService extends BaseService
# if any time fields are == to "now", then insert the right time
foreach($this->time_fields as $tf) {
if(array_key_exists($tf, $row) && $row[$tf] === 'now') {
if(array_key_exists($tf, $row) && strtolower($row[$tf]) === 'now') {
$row[$tf] = $this->time();
}
}