MySQL Forums :: Connector/JDBC and Java :: timestamp and daylight saving

Advanced Search

timestamp and daylight saving
Posted by: Davide Zoccatelli ()
Date: February 15, 2013 08:11AM

I'm running a matlab function (fastinsert) to insert data into MySQL. The results are correct for the whole year except for 1 hour in March, during daylight saving. In fact it seems that I cannot insert data between 2:00am and 3:00am on that day.

For example with:

ts = 2006 3 26 2 30 0

looking within the matlab function I found that the problem lies into:


that gives as a result:

2006-03-26 03:30:00.0

So using java.sql.Timestamp I have a +1h shift ONLY during the single hour of daylight saving in the end of March.
How can I solve this?

Options: ReplyQuote

Subject Written By Posted
timestamp and daylight saving Davide Zoccatelli 02/15/2013 08:11AM
Re: timestamp and daylight saving Tonci Grgin 02/22/2013 02:15AM
Re: timestamp and daylight saving Bernt Johnsen 02/27/2013 06:02AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.