Time Zone problems

I’ve seen other people post about this problem, and it seems to be due to a difference between erpnext’s timezone and the timezone on the host machine.

With a fresh install, setting to my timezone (ET America/New_York) results all comments and entries to say “-in 9 hours.”

Playing around with different time zones helps, but it never gets to within 30 mins of accurate time.

The solution I’ve found is setting to the correct timezone, saving, and then restarting my entire server. I’m not sure if this is the best way to fix the problem, but upon restart, all comments when created read correctly “-a few seconds ago.”

Can anyone offer any insight as to why this happens?

To be clear I’m running ERPNext: v6.27.22 on Frappe Framework: v6.27.21 on ubuntu 14.04.

@blrzzzt have you setup NTP on your server? If your server time is off this could be a problem.

ERPnext is used across many many timezones and this does not seem a usual problem.

Edit: http://doc.ntp.org/4.1.0/ntpd.htm