If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 v815 updating timestamp column adds one hour to string entered

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-11, 13:28
gograham gograham is offline
Registered User
 
Join Date: Mar 2011
Posts: 2
DB2 v815 updating timestamp column adds one hour to string entered

this is my first time posting so bear with me...

when I update a DB2 column defined as “timestamp” with any time between 2-3 a.m. on 3/13/2011 (US time change date) an hour is automatically added. However a customer of mine can modify date values in their tables to have times between 2 and 3 on this date without DB2 adding an hour. The hour between 2-3 does not really exist since we jumped forward.

I am trying to determine where this functionality is set. is it ZPARM setting?

example:

update table set TRN_DT = '2011-03-13 02:11:10'

The statement runs without error but the results are:

TRN_DT
2011-03-13 03:11:10
Reply With Quote
  #2 (permalink)  
Old 03-17-11, 06:22
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I would guess you have a timezone set that tells DB2 about the DST shift applicable to that timezone? The customer may have a different timezone set in which the DST shift occurs on another date (or no DST shift at all).
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 03-17-11, 09:46
gograham gograham is offline
Registered User
 
Join Date: Mar 2011
Posts: 2
Thanks Knut, that sounds plausible but what I am wondering is where this is set.

George
Reply With Quote
  #4 (permalink)  
Old 03-17-11, 17:28
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I would start looking in the system settings.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On