Bugzilla: Software error: cannot determine local timezone
I just finished installing BugZilla but I am not prompted to set up an admin and admin account. The database indicates that there is a user created with email admin@mydomain.com
, so I am trying to reset the password. When I try to reset the password, I get the following error:
Software error:
Unable to determine local timezone
Timezone set:
$ dpkg-reconfigure tzdata
Current default time zone: 'America/New_York'
Local time is now: Tue Oct 14 21:14:12 EDT 2014.
Universal Time is now: Wed Oct 15 01:14:12 UTC 2014.
I can't follow instructions like this one as I don't have access to the admin panel yet, as I don't have access because there is no admin account. What should I do?
source to share
I had the same problem. I resolved this by putting BEGIN {$ ENV {TZ} = 'America / Denver'} in the Bugzilla / Util.pm file. See the code snippet below and insert "BEGIN {$ ENV {TZ} = 'America / Denver'}" as shown
`use Date::Parse;
use Date::Format;
BEGIN { $ENV{TZ} = 'America/Denver' }
use DateTime;
use DateTime::TimeZone; `
Hope this helps. -
source to share