Skip to content

Commit

Permalink
Set timezone and error handler in survey.php
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Sep 4, 2017
1 parent 23370e3 commit 1a5cac7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
* Survey endpoint for SyncTrayzor
*/

set_error_handler('error_handler');
date_default_timezone_set('UCT');

function error_handler($severity, $message, $filename, $lineno)
{
throw new ErrorException($message, 0, $severity, $filename, $lineno);
}

define('DATABASE', 'survey.sqlite');

try
Expand Down

0 comments on commit 1a5cac7

Please sign in to comment.