Friday, June 19, 2009

My date timestamps off by a day

Try and test this, but only during the summer months. Create a new record in your database that requires a timestamp. Is the time off by an hour? If so, you are probably dealing with international times.

What's happening is the local time is different than the international time for the US due to the fact we have daylight savings. Here in the US, the time changes, but to the rest of the world, it doesn't. Note, you may only notice this in the summer. During the winter months, you will not see this error.