fixes: set timezone if not set in php (#12)

This commit is contained in:
DacoTaco 2022-10-31 15:56:38 +01:00 committed by GitHub
parent 70ac2074ab
commit 9b5b134e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,8 +73,13 @@
return false;
}
};
var get_year =function() {return '<?= echo(date('Y')); ?>';};
var get_day =function() {return '<?= echo(date('w')); ?>';};
<?php
if( ! ini_get('date.timezone') )
date_default_timezone_set('UTC');
printf("var get_year =function() {return '".date('Y')."';};\n");
printf(" var get_day =function() {return '".date('w')."';};\n");
?>
var fwv = '4.89';
token ='bVBwcJUOF3x5Mi1jEhA4RR/STnwicOfara+atTbAJSE=';
function loadLib(idx){