Different date saved to database - wrong time zone
When I fetch a date from FullCalendar with Javascript I have the following
values:
Fri Sep 13 2013 08:30:33 GMT-0400 (EDT)
After I save that date to database I see that in database there are
different values:
2013-09-13 12:00:00.000000
So, date is automatically converted to UTC and saved like that into
database. How to save the correct date into database? I don't want to
hardcode it :)
Thank you.
No comments:
Post a Comment