Change the default timezone

work-arrounds and tricks using DbFace. SQL sample code, HTML template sample code.
admin
Site Admin
Posts: 38
Joined: Tue Oct 17, 2017 5:21 am

Change the default timezone

Postby admin » Wed May 16, 2018 10:26 am

If you already set date.timezone entry in php.ini.
DbFace will use the default timezone.

If not set this entry in php.ini, DbFace will use UTC timezone.

You can open index.php and find

Code: Select all

$tz = ini_get('date.timezone');
if ($tz == FALSE) {
  date_default_timezone_set( 'UTC' );
}

change to

Code: Select all

date_default_timezone_set( 'your-wanted-timezone' );


You can find all available timezone at this page:
http://php.net/manual/en/timezones.php