View Full Version : Time zone for Browser

21 Sep 2012, 1:45 AM
Hi Guys, this question would be asked many times and answers by all lovely people. But I am writing for more clarification

Guys, recently I was playing around with my application, I found very strange thing for date thing.
I date and time field on my application, when I save date and time in the database, it saves as +1:00 format. My location is London when i add this it gives me as 21-Sep-2012 11:42 am. where my system time is 10:42 am.

When I types on browser for testing, it was showing me as
document.write("Last Updated on " + document.lastModified + ".");

Last Updated on 09/21/2012 09:43:42.

What is easiest way to store sys date in the database rather browser date.

I am using extjs 4.0.7

22 Sep 2012, 3:13 PM
See if this helps:

Another option would be to have the server set the date instead of the client.