mysql - Daylight saving in timestamps -



mysql - Daylight saving in timestamps -

i'm running matlab function (fastinsert) insert info mysql. results right whole year except 1 hr in march, during daylight saving. in fact seems cannot insert info between 2:00am , 3:00am on day.

for illustration with:

ts = 2006 3 26 2 30 0

looking within matlab function found problem lies into:

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

that gives result:

2006-03-26 03:30:00.0

how can solve this?

i've run similar problems in storing datetime on many occasions. treating value derived value seems create sense. in other words, instead of storing local time store value gmt , time zone. derive appropriate value when query data.

this has added benefit of making possible store values multiple locations without having worry confusion downwards road.

mysql matlab timestamp dst

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -