PHP Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /store/home/www/blog/flatpress-0.1010/fp-includes/core/core.date.php on line 95Although this is pointing at the location of the mktime() call, it doesn't seem to be the right place to set the timezone. Perhaps fp-content/config/settings.conf.php is more appropriate. What is the right approach here ?
$arr['time'] = mktime($arr['H'], $arr['M'], $arr['S'],
$arr['m'], $arr['d'], $arr['y']);
into these
global $fp_config;
$arr['time'] = 60*60*$fp_config['locale']['timeoffset'] +
gmmktime($arr['H'], $arr['M'], $arr['S'],
$arr['m'], $arr['d'], $arr['y']);
so that *ANY* date is interpreted as a GMT date offset by the value in the option panel but this would probably break old entries (but it would break only their displayed date, so it might not be that big a deal for you) quietdragon said: Generally speaking, my experience has been that date records and timestamps should be stored as UTC. Dates should be shown in local time where appropriate. To accomplish this, a mechanism such as the TZ variable in tzset(3) should be used because the rules to accomplish the transformation from UTC to local civil time are somewhat arcane especially when it comes to Daylight Saving Time. A simple UTC offset simply isn't expressive enough in the general case.
quietdragon said: I'm also not so sure about your suggestion to put this in lang/en-us. This is not a language issue, it's an issue of geography. I may want the display to be in English, but my server might be located in Asia
Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /Users/anwarchoukah/Sites/created_by/flatpress/fp-includes/core/core.date.php on line 28Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /Users/anwarchoukah/Sites/created_by/flatpress/fp-includes/core/core.date.php on line 46
It looks like you're new here. If you want to get involved, click one of these buttons!