Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bugzilla: Software error: Cannot determine local time zone

Tags:

bugzilla

I just finished installing BugZilla however I am not being prompted to setup and admin account. The database indicates there is a user created with the email [email protected] so I am trying to reset the password. When I try to reset the password I get the following error:

Software error:

Cannot determine local time zone

The timezone is 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 cannot follow instructions like these as I do not have access to the admin panel as of yet, as I don't have access because of not having an admin account. What should I do?

like image 838
ComputerLocus Avatar asked Oct 15 '14 01:10

ComputerLocus


3 Answers

I just did a sudo cpan DateTime::TimeZone and that fixed the issue.

like image 180
ComputerLocus Avatar answered Oct 18 '22 18:10

ComputerLocus


I had the same error with perl on Windows which was fixed by installing the module DateTime::TimeZone::Local::Win32

like image 37
Matthew Lock Avatar answered Oct 18 '22 20:10

Matthew Lock


I had the same problem. I resolved it by putting BEGIN { $ENV{TZ} = 'America/Denver' } in the Bugzilla/Util.pm file. See code snippet below & insert " BEGIN { $ENV{TZ} = 'America/Denver' } " as shown

`use Date::Parse; 
use Date::Format; 
BEGIN { $ENV{TZ} = 'America/Denver' } 
use DateTime; 
use DateTime::TimeZone; `

I hope this helps. -

like image 1
rakesh ravindran Avatar answered Oct 18 '22 19:10

rakesh ravindran