|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-29 22:56 UTC] sniper@php.net
[2005-11-29 23:19 UTC] a dot schilder at gmx dot de
[2005-11-29 23:28 UTC] sniper@php.net
[2005-11-30 00:52 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 14:00:01 2025 UTC |
Description: ------------ Using date_default_timezone_get() without having set a timezone before, produces an error: "It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We selected 'Europe/Paris' for '1.0/no DST' instead". I want to check the current timezone and this should be the correct function for it. I want to get a result to work with Reproduce code: --------------- <?php echo date_default_timezone_get(); ?> Expected result: ---------------- Get an empty string, like with "ini_get('date.timezone')"). Also false or null would be okay. Actual result: -------------- Error message.