mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
- Moves loading timezone from config file to 'load_timezone.php' - Applies code style suggestions from IDE
6 lines
No EOL
170 B
PHP
6 lines
No EOL
170 B
PHP
<?php
|
|
$config = parse_ini_file('private/config.ini');
|
|
|
|
if (!date_default_timezone_set($config['timezone'])) {
|
|
die('Not a valid timezone - Check your config.ini file');
|
|
} |