Mercurial > hg > webaudioevaluationtool
changeset 1221:310b4640b93d
Better solve for #1629
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 23 Feb 2016 16:59:59 +0000 |
parents | 585e06d319d2 |
children | bcd5c032f196 |
files | save.php |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/save.php Tue Feb 23 16:57:06 2016 +0000 +++ b/save.php Tue Feb 23 16:59:59 2016 +0000 @@ -1,5 +1,10 @@ <?php - date_default_timezone_set("Europe/London"); + try{ + date_default_timezone_get(); + } + catch(Exception $e){ + date_default_timezone_set('UTC'); // Sets to UTC if not specified anywhere in .ini + } header('Access-Control-Allow-Origin: *'); header("Content-type: text/xml"); error_reporting(0);