473,382 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

current timestamp shows wrong time

I have a situation on a DB server where the "current timestamp" command
shows the actual system time offset by one hour, which has never been
noticed before?!?
The DB2 is V9.1 (FP03), running on AIX 5.3.
System timezone is offset by one hour to GMT, but this shouldn't cause such
behavior.

# echo $TZ
NFT-1DFT,M3.5.0,M10.5.0

# db2 "select current timestamp from sysibm.sysdummy1"
1
--------------------------
2008-03-28-11.21.07.753817
1 record(s) selected.

# date
Fri 28 Mar 2008 10:21:08

Any ideas on this one?

Regards,
Damir
Mar 28 '08 #1
7 9158
Damir wrote:
I have a situation on a DB server where the "current timestamp" command
shows the actual system time offset by one hour, which has never been
noticed before?!?
The DB2 is V9.1 (FP03), running on AIX 5.3.
System timezone is offset by one hour to GMT, but this shouldn't cause such
behavior.

# echo $TZ
NFT-1DFT,M3.5.0,M10.5.0

# db2 "select current timestamp from sysibm.sysdummy1"
1
--------------------------
2008-03-28-11.21.07.753817
1 record(s) selected.

# date
Fri 28 Mar 2008 10:21:08

Any ideas on this one?
DST Daylight Savings Time

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 28 '08 #2
"Serge Rielau" <sr*****@ca.ibm.comwrote in message
news:65*************@mid.individual.net...
Damir wrote:
>I have a situation on a DB server where the "current timestamp" command
shows the actual system time offset by one hour, which has never been
noticed before?!?
The DB2 is V9.1 (FP03), running on AIX 5.3.
System timezone is offset by one hour to GMT, but this shouldn't cause
such behavior.

# echo $TZ
NFT-1DFT,M3.5.0,M10.5.0

# db2 "select current timestamp from sysibm.sysdummy1"
1
--------------------------
2008-03-28-11.21.07.753817
1 record(s) selected.

# date
Fri 28 Mar 2008 10:21:08

Any ideas on this one?
DST Daylight Savings Time
We had the same problem on our AIX 5.3 servers. db2 v9.1 fp2 and 4. Since
Fri March 28th 02:00 the summertime is active on the instance of db2.
(current timezone changes then from 1 to 2). That's 2 days to early. So all
current timestamps are wrong. We could change the timestamp to yesterday and
then back to today. Then the time is correct. But what's happening on Sunday
then when the real summetime in Europe starts ?

We opened a Sev 1 PMR for this unexpected problem.

Paul
Mar 28 '08 #3
Paul Peters wrote:
"Serge Rielau" <sr*****@ca.ibm.comwrote in message
news:65*************@mid.individual.net...
>Damir wrote:
>>I have a situation on a DB server where the "current timestamp" command
shows the actual system time offset by one hour, which has never been
noticed before?!?
The DB2 is V9.1 (FP03), running on AIX 5.3.
System timezone is offset by one hour to GMT, but this shouldn't cause
such behavior.

# echo $TZ
NFT-1DFT,M3.5.0,M10.5.0

# db2 "select current timestamp from sysibm.sysdummy1"
1
--------------------------
2008-03-28-11.21.07.753817
1 record(s) selected.

# date
Fri 28 Mar 2008 10:21:08

Any ideas on this one?
DST Daylight Savings Time

We had the same problem on our AIX 5.3 servers. db2 v9.1 fp2 and 4. Since
Fri March 28th 02:00 the summertime is active on the instance of db2.
(current timezone changes then from 1 to 2). That's 2 days to early. So all
current timestamps are wrong. We could change the timestamp to yesterday and
then back to today. Then the time is correct. But what's happening on Sunday
then when the real summetime in Europe starts ?

We opened a Sev 1 PMR for this unexpected problem.
Presumably with AIX?
PS: Which country are you? Germany switched on Easter Sunday (I thought)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Mar 28 '08 #4
>We opened a Sev 1 PMR for this unexpected problem.
Presumably with AIX?
PS: Which country are you? Germany switched on Easter Sunday (I thought)

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

With AIX. : I'm coming from the Netherlands. Europe is switching on next
Sunday (March 30th)
Mar 28 '08 #5
"Serge Rielau" <sr*****@ca.ibm.comwrote in message
news:65*************@mid.individual.net...
Paul Peters wrote:
>"Serge Rielau" <sr*****@ca.ibm.comwrote in message
news:65*************@mid.individual.net...
....
>We had the same problem on our AIX 5.3 servers. db2 v9.1 fp2 and 4. Since
Fri March 28th 02:00 the summertime is active on the instance of db2.
(current timezone changes then from 1 to 2). That's 2 days to early. So
all current timestamps are wrong. We could change the timestamp to
yesterday and then back to today. Then the time is correct. But what's
happening on Sunday then when the real summetime in Europe starts ?

We opened a Sev 1 PMR for this unexpected problem.
Presumably with AIX?
PS: Which country are you? Germany switched on Easter Sunday (I thought)
Here is my situation in more detail (on more different servers):
1. AIX 5.3_TL07, DB2 V9_FP03, current timezone = 2
2. AIX 5.3_TL07, DB2 V9_FP00, current timezone = 2
3. AIX 5.2_TL09, DB2 V9_FP02, current timezone = 1

It seems as though DB2 has a problem with AIX 5.3, since it works as
expected with AIX 5.2 ?!

Regards,
Damir

Mar 28 '08 #6
Does anyone know if this is a real problem ? Is there indeed a
timezone-related bug in DB2 v9 on AIX 5.3 ?
Apr 8 '08 #7
I think, that the timestamp generated from OS. Does your timestamp
shows different time than your OS ?
On Apr 8, 10:12 am, idenent...@hotmail.com wrote:
Does anyone know if this is a real problem ? Is there indeed a
timezone-related bug in DB2 v9 on AIX 5.3 ?
Apr 8 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas Guettler | last post by:
Hi, I think it would be good, if the current time would be in the traceback. This would make it easier to read logfiles with tracebacks of python scripts. I know that I can write a custom...
3
by: Andreas | last post by:
Hello list, I suspect, this is a common issue for newbies. Is there a simple way to have an auto-updating timestamp like mysql has ? create table something ( id int4, sometext...
8
by: Chris | last post by:
Sorry, This should be simple, but brain is hurting... How do I convert a Current Time to a Decimal 6,0 (HMS)? There must be a cleaner way then this: Insert into Table Values Dec(...
2
by: Russell Smith | last post by:
Timestamps support infinity. However if appears dates do not. When timestamps are cast to dates, there is no output. Is this an acceptable option or not? Below are a number of examples...
16
by: Brian Tkatch | last post by:
I have a PROCEDURE that test other PROCEDUREs. Timings_Call ------------------ Id Group Name Text Timings_Log
2
by: anwar | last post by:
Hi all, Im trying to extract db2 server current system timestamp from unix shell script. So from shell script call the export command " db2 export to curdate.txt of del modified by chardel' '...
4
by: mghale | last post by:
I have a question that I'm hoping has an easy answer. I'm working in DB2 V8.2 on AIX 5.3 I have a timestamp column (i.e. 4/26/2006 1:02:42.000000 PM) that I want to return in a report from...
1
by: smowbray | last post by:
I am trying to populate a timestamp on a form when a certain event happens. I am just starting to learn scripting and hope someone can help. On my form there is a button that calls another process....
30
by: Ashit Vora | last post by:
Hi, I want to find the current time stamp in micro sec precision. The requirement is, my function is executed in an infinite loop. I measure a value and check if the value computed is what i...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.