Closed returnWOW closed 4 years ago
Well, the easiest is to just delete /etc/timezone
, or edit it, and add the correct timezone.
tzlocal is trying to find your timezone in the systems configuration. If it's incorrectly configured, tzlocal will fail in doing so.
Well, the easiest is to just delete
/etc/timezone
, or edit it, and add the correct timezone.tzlocal is trying to find your timezone in the systems configuration. If it's incorrectly configured, tzlocal will fail in doing so.
Ok, But thanks.
There has some unknow reason on this file
/etc/timezone
is empty, but right now the function_get_localzone
first to parser this file to obtain time zone info, in this case has raiseUnknownTimeZoneError
.But I saw this function has other way to get Timezone info, so we can change this func to raise error when return without Timezone. Sorry for my bad English.