Dashboard error - just migrated site

Permalink
I moved the site to another server and I was able to access the dashboard a few times but now when I try to log into the Dashboard I get this error

Site Activity
An unexpected error occurred.
DateTimeZone::__construct(): Unknown or bad timezone (Default)

 
sorrells replied on at Permalink Reply
anyone have any ideas?
ThemeGuru replied on at Permalink Reply
ThemeGuru
Maybe you should make sure that all the files were updated.
sorrells replied on at Permalink Reply
all files were updated. I was able to log into the dashboard and use for a couple logins but all of a sudden it stopped working.
sorrells replied on at Permalink Best Answer Reply
so a workaround for this is to go back to your test site and turn off user timezones or just turn off user times before backing up the database. then re-import the new database and it now works. Not sure the real resolution but at least the site is functional again.
zanedev replied on at Permalink Reply
zanedev
I had the same issue after moving servers, rather than reimport the entire database, I looked at the users table and noticed that my admin users had a value of "default" instead of null for datetime column. I simply reset those to null and logged out and back in again and back in action. Not sure why they would have got default as a value initially or why a server transfer would trigger the problem, strange behavior for sure. I did go from php 5.2 to 5.3 on the new server if that's any help to someone.