* Timesheet: Fix created time was wrong in user timezone was not the same as server timezone

This commit is contained in:
nathangray 2021-01-28 09:39:17 -07:00
parent 5b4a436ab3
commit 779f2691bd

View File

@ -622,7 +622,7 @@ class timesheet_bo extends Api\Storage
} }
if (!$this->data['ts_created']) if (!$this->data['ts_created'])
{ {
$this->data['ts_created'] = time(); $this->data['ts_created'] = Api\DateTime::to('now','ts');
} }
if (isset($old) && !$changed) if (isset($old) && !$changed)
{ {