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:

java.sql.Timestamp(ts(1)-1900,ts(2)-1,ts(3),ts(4),ts(5),secs,nanosecs)

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
February 15, 2013 08:11AM


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.