diff --git a/timesheet/inc/class.timesheet_bo.inc.php b/timesheet/inc/class.timesheet_bo.inc.php index 8fbb3a7864..752d378454 100644 --- a/timesheet/inc/class.timesheet_bo.inc.php +++ b/timesheet/inc/class.timesheet_bo.inc.php @@ -622,7 +622,7 @@ class timesheet_bo extends Api\Storage } if (!$this->data['ts_created']) { - $this->data['ts_created'] = time(); + $this->data['ts_created'] = Api\DateTime::to('now','ts'); } if (isset($old) && !$changed) {