Daylight Savings Time Confusion

Hello,
I am trying to understand how Daylight Savings Time is handled in Oracle Database.
I have read through the "Oracle Database Globalization Support Guide", in particular this part onwards to understand how it works.
However, I have some doubts about the way things work.
I am particularly interested in how the ambiguous date-times are handled.
I have been trying to find the reason as to why same query returns different values when executed through SQL Developer and from SQL*Plus
Following are the details:
In SQL*Plus session
SQL> select * from v$version ;
BANNER
Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
CORE    11.2.0.2.0      Production
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
SQL> select sessiontimezone, dbtimezone from dual ;
SESSIONTIMEZONE
DBTIME
+01:00
+00:00
SQL> select to_timestamp('31-MAR-2013 01:00:00','DD-MON-YYYY HH24:MI:SS') from dual ;
TO_TIMESTAMP('31-MAR-201301:00:00','DD-MON-YYYYHH24:MI:SS')
31-MAR-13 01.00.00.000000000
SQL> alter session set time_zone = 'Europe/London' ;
Session altered.
SQL> select to_timestamp('31-MAR-2013 01:00:00','DD-MON-YYYY HH24:MI:SS') from dual ;
TO_TIMESTAMP('31-MAR-201301:00:00','DD-MON-YYYYHH24:MI:SS')
31-MAR-13 01.00.00.000000000
SQL> select to_timestamp('31-MAR-2013 01:00:00','DD-MON-YYYY HH24:MI:SS') at time zone 'Europe/London' from dual ;
select to_timestamp('31-MAR-2013 01:00:00','DD-MON-YYYY HH24:MI:SS') at time zone 'Europe/London' from dual
ERROR at line 1:
ORA-01878: specified field not found in datetime or intervalAs you can see, when the clocks changed on the morning of 31st March, the time between 01:00:00 and 01:59:59 does not exist (as the clocks are advanced by one hour at 01:00:00 AM to 02:00:00 AM). However, the TO_TIMESTAMP function returns the "invalid" date.
But when I execute the same query (i.e. select to_timestamp('31-MAR-2013 01:00:00','DD-MON-YYYY HH24:MI:SS') from dual) against the same database using SQL Developer, I get "31-MAR-2013 02.00.00.000000000" as the result.
SESSIONTIMEZONE     DBTIMEZONE
Europe/London     +00:00Can somebody help me understand this behaviour ?
Thanks in advance.
Edited by: user503699 on Apr 19, 2013 3:28 PM

sorry, i don't explain it very well.
I mean that the same time_zone name can be the same, but the value depend of the time zone table:
For example:
TZNAME                                              TZABBREV
Europe/London                                                    LMT
Europe/London                                                    GMT
Europe/London                                                    BST
Europe/London                                                    BDSTLMT
Local Mean Time. This is the 'natural' mean solar time for the time zone, excluding the equation of time. At the moments where the equation of time is zero, this is the amount of time to be added to UTC. Right then the sun passes the local meridian and is at its highest point in the sky.
This means that the sun is at its highest point at local time:
12 + zonetime + DST - LMT - EquationOfTime
Example: Kaxgar, China; location: 39:29°N, 075:59°E; LMT: 5:03:56; zone: 8; DST: 0; EoT on 2005-07-29: -0:06:28; this gives local time 15:02:32.
Over a year the equation of time can make a difference of between about + and - 18 minutes with the mean LMT time. The LMT time is calculated from the geographic longitude of a local place. Divide the number of degrees in longitude by 15.GMT:
Greenwich Mean Time (GMT) is a time system originally referring to mean solar time at the Royal Observatory in Greenwich, London,BST:
British Summer Time
Time zone offset: UTC + 1 hour
BST is 1 hour ahead of Coordinated Universal Time (UTC)
Note that BST is a daylight saving time/summer time zone. It is generally only used during the summer in the places listed below, during the winter GMT or IST are used instead*BDST i cant find.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • ICal issues with Daylight Savings Time

    After Daylight Savings Time some of my appointment in iCal have automatically changed to one hour later. This did it happen to all of them which makes it quite confusing. I think that it was mostly the recurring ones. Any ideas on how to fix this?  I don't recall this happening in previous years. A couple things that may be in play. My iCal is linked to a google calendar but I make the vast majority of my appointments through iCal. I have noticed that some appointments show up in CEntral Time and others in GMT. Could this be a factor. How do I get that timing consistent?  Thanks for your help.

    Yes we did power down and then back up with all three.  We also called each phone to see if that would help.  I just had a thought ... would removing the battery help?  I've had verizon phones for many years and I"ve never had this happen.

  • IPhone 6 Plus Daylight Savings Time Problem

    My recent upgrade from iPhone 5 to iPhone 6 Plus has been generally positive, but today the phone outsmarted me.
    The phone seemed to be correctly reset to daylight savings time for most of the day.
    Around 6PM I set an alarm for 8PM to remind me to wake my sister from a nap.
    A while later the alarm goes off. It didn't seem like two hours. I called my sister and said it was eight,
    but alas it was only 7PM.
    I went into the alarm settings and sure enough the alarm was still set for 8PM.
    My Mac Pro says it is 7PM, and the MacBook says so also.
    I am on the central coast of California, in Santa Maria. My provider is Sprint.
    My very expensive smart phone seems confused about the time. :-(
    Thoughts?

    The alarm issue is a known problem and apparently Apple plans on fixing it with iOS 4.2. Here's a link to news items about the alarm issue.
    http://www.google.ca/search?q=applealarmissue&hl=en&client=firefox-a&hs=M4Z&rls=org.mozilla:en-US:official&prmd=nfd&sour ce=univ&tbs=nws:1&tbo=u&ei=jqLZTMLiOITWtQPt2pi3Bw&sa=X&oi=news_group&ct=title&re snum=1&ved=0CCIQqAIwAA

  • IdM Scheduler and Time Change to Daylight Savings Time GMT to BST

    This isn't really a 'question' , but just a topic for discussion.
    We're not live yet, but will be by the time the clocks go back. So I'm just interest to hear everyone's experiences and any issues with regards to the switching to / from DST
    I did some "interesting" (or not) tests last night to see what happens with Pending Values which are due to take effect at the time change threshold of 01:00 GMT when switching to Daylight Savings Time (BST) GMT +0100.
    It seems as if the IdM scheduler keeps going according to UTC or GMT. However any values provisioned to target systems or to local tables using the ddm.datetime8601 system variable are in local time according to the runtime server or SQL server's locale settings.
    I set up a task to output from a javascript the current system date
    using the following in the functions.
    currentTime = new Date();
    return currentTime.toString(); // returns Locale Time String
    currentTime = new Date();
    return currentTime.toUTCString(); // returns UTC Time String
    in the same pass I also output the ddm.datetime8601 system parameter and the ddm.time24 system parameter.
    This task was to update a comment on an entry and Scheduled to run at 00:00:00 and was executed at 00:00:06 GMT all times were still in GMT as expected.
    Local Time: Sun Mar 27 00:00:06 GMT-0000 (GMT) 2011, UTC Time: Sun, 27 Mar 2011 00:00:06 GMT, ddm.datetime8601: 2011-03-27T00:00:06, ddm.time24: 00:00:06
    This task was scheduled at 01:00:00 in IdM and was exectued at 01:00:08 GMT by the runtime, and you can see the local time is being correctly reported as 02:00:08 BST. Note also the ddmdatetime8061 is also 02:00:08 i.e. BST.
    Local Time: Sun Mar 27 02:00:08 GMT+0100 (BST) 2011, UTC Time: Sun, 27 Mar 2011 01:00:08 GMT, ddm.datetime8601: 2011-03-27T02:00:08, ddm.time24: 02:00:08
    In the database the entry values MXI_VALUES ModifyTime field has the GMT / UTC timestamp.
    I also set up some pending value objects to be applied at 00:59:59 and 01:30:00 to see if the 01:30:00 would be 'skipped' as the locl clock change would've gone from 00:59:59 to 02:00:00. Well the pending values were correctly applied and expired and no 'lost' transactions happened as a result of the change.
    So essentially it seems to me that the IdM runtime and scheduler times are all based on UTC / GMT.
    I guess it's only an issue twice a year if you're expecting something to happen at a specific local time 01:00:00 or if you've got a global user base and their account expiry should be in each user's own country's local time. In these cases, it would seem that you'd need to convert the schedule times and pending value times to UTC first before setting them in the database.
    Has anyone else had any issues, thoughts, questions or suggestioins on scheduling tasks which span the DST time change when switching to and from Daylight Savings Time.
    Edited by: Paul Abrahamson on Mar 27, 2011 10:51 AM

    Read here:
    http://www.appleinsider.com/articles/10/10/11/applesays_ios_software_update_to_fix_pesky_alarm_clockbug.html

  • Multiple instances spawned after daylight savings time change

    This is a known issue and there is an SAP Knowledge Base Article created on this issue:
    1448881 - Multiple instances spawned after daylight savings time change
    Below is the information from the SAP Knowledge Base Article:
    Symptom
    Scheduled reports that are supposed to run once a day, run multiple times.
    Duplicate instances are being created.
    Environment
    BusinessObjects Enterprise XIR2 SP5
    BusinessObjects Enterprise XIR2 SP5 + FP5.x
    Reproducing the Issue
    A report is scheduled to be run on a daily basis - this is a Recurring schedule.
    Normally the report runs once a day, at a particular time.
    After Daylight Savings Time change, the report runs at the specified time, but immediately after the successful instance, another instance is spawned.
    Many more instances spawn after each instance completes.
    Cause
    This is a known issue: ADAPT01318487. This issue is because of DST and how our code handles this change.
    Resolution
    There is currently no known fix for this issue. There is however a script that can quickly resolve the problem.
    The issue it seems is related to Daily recurring schedules.
    What this script will do:
    it will run a query to display all your DAILY Recurring jobs
    you will have the option to choose your jobs and reschedule them by 1 hour
    you will then highlight the same job and change them back by 1 hour
    by modifying the schedule times, you are modifying the schedule itself and this will keep the issue of duplicate instances from occurring.
    Exact Steps to Complete:
    Stop the Job Servers.
    Double click on the .hta file.
    Change the System Name to that of your CMS name.
    Add the Administrator's password.
    Click Logon.
    Click List All Recurring Instances.
    Select All.
    Make note of what it says in: Schedule Selected Recurring Instances: Should be 1 hr earlier.
    Click Reschedule Selected Recurring Instances.
    Choose All instances again and change Schedule Selected Recurring Instances to 1 hour Later.
    Click Reschedule Selected Recurring Instances.
    Now start your Job Servers.
    The issue should not occur again.
    The Script is attached here, but please review the SAP Knowledge Base article 1448881 as well

    Hi Nicola,
    - The multiple spawned instances issue ONLY affects XI3 SP3+ only.  For XI3 SP1 and SP2 all Fix Pack levels this is not an issue as it was introduced as a problem in SP3.
    - 1568239 notes the Java version and can apply to all O/S environments and is updated to reflect that.
    If you are located in Europe you can also apply the patches in advance of the DST change to avoid the problem.  If you are in Americas at this point utilizing the clean up scripts for this year is the approach needed to clean up the spawned instances and reschedule the existing schedules.
    Thanks,
    Chris

  • Outlook 2011 for mac daylight savings time issue

    Hello,
    I have a problem in my company where after daylight savings time meetings are shown an hour off in the calendar, but in the body of the meeting the time seems fine. The real problem is when after updating the meeting from it's body (just pressing save and
    close) the meeting is bloated by an hour.
    E.g. if a meeting after daylight savings time is from 11:00 to 12:00, it's shown on the calendar  from 12:00 to 13:00, but after updating the meeting it's shown from 11:00-13:00.
    This happens only on the macs in the company.
    Thank you.

    Hi Harel,
    This is the forum to discuss questions and feedback for Windows-based Microsoft Office client. Since your query is directly related to Office for mac, I would suggest you to post in the forum of Office for Mac, where you can get more experienced responses:
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011?tab=Threads
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Solaris 10 u8 system did not update daylight savings time

    I am running Solaris 10 u8 x86, and my system did not update for the daylight savings time change on Nov. 1, 2009. I am in the US/Mountain time zone. What should I do?
    Patch 141517-04 is installed, I assume it came with u8.
    Does this have something to with JAVA Time Zone updater? I saw this:
    http://java.sun.com/javase/timezones/tzdata_versions.html
    Shouldn't u8 take care of all this automatically? Do I have to somehow get TZUT 1.3.20? By contacting support? What?
    Any suggestions would be greatly appreciated.

    BTW, I'm running 64-bit Solaris as a VirtualBox (3.0.10) guest VM on a 32-bit WinXP host.

  • Daylight Savings Time and Alarmsk

    Since the daylight savings time updated over the weekend the alarms I had programmed on my iPhone will not set properly. The phone displays the correct current time so I know the clock has updated but any alarms I have set for the hour of 2am - 3am don't display the proper time. They keep reverting to 1-2am. I have deleted them and recreated them with the same results, on 2 different iPhones, a 4gig and an 8gig.

    I see im not the only one that gets up early. v1.1.3 and updated to 1.1.4 I am unable to set the alarm to any time in 2AM (2:01, 3, 4, 5, etc..) any time set to 2AM shows 1AM in the alarm. 2PM shows fine. Any hour of the day shows fine. The error is setting a time of 2AM as it will not show that time and will revert to 1AM.
    I am in a zone that uses DST.
    I guess apple doesnt want us to wake up to pay the bills.
    I hope someone has a fix for this before I goto bed... busting out the old alarm clock now.

  • Daylight Savings Time and Time Zone Issue:

    Howdy!  Many of us woke up this morning to be dismayed to find that our iPhone was TWO hours behind instead of falling back one for the Daylight Savings Time adjustment, and were late for church.  I have an iPhone 4S, with iOS 5...
    I was working at that time of morning, and the initial switch went well.  However, when I woke up, the clock was yet another hour behind.  A little investigation showed that the Time zone had been changed to Denver (It was previously on Chicaco, and I live in Dallas.)  I tried to select it to change it, and it wouldn't allow me.  If I turned off the Set Automatically feature, then I could change it, but when I turned the Set Automatically feature back on, it would re-set the time zone to Denver.
    I found another thread where they discuss this:
    https://discussions.apple.com/message/16644669
    To fix this, put in airplane mode, then back out again, then re-choose your correct time zone.  If this doesn't work, then try turning your phone completely off and then on again.  Thanks to 4n6doc for the tip!
    The airplane mode trick worked for me:  I turned airplane mode on, then off, then went to the Date & Time and set my time zone to Dallas, TX while the Set Automatically was off.  When I turned the Set Automatically back on, it changed Dallas to Chicago, which is what every iPhone iOS I've ever had has done.

    Hi,
    Yes this is a correct way to fix the issue. One thing however, how did you set the timezone? For correct daylight saving handling, you'll have to use the long version, like America/New Yorw, NOT GMT-5 (for example).
    regards,
    ~ Simon

  • Daylight Savings Time for the USA

    I am trying to add a new entry for the new daylight savings time change implemented in the United States in a 4.6C system.  I am trying to make the change per SAP note 919538. 
    The problem is when I go into transaction STZBC, and try to add a new entry for the USA, after I input what was stated in the SAP note and try to save the new entry, I receive an error "Choose the key from the allowed name space".
    How have others implemented this change?  I am unsure of modifying the entry that is there already for the USA since the sap note says to add a new entry.
    Regards,
    Doug Slupski

    Hi Doug
    Isn't this message informational only?? It does not show as an Error. If you hit Enter a couple of times, it should go thru...
    I am not sure if it will wipe out the previous entry under the Key "USA"from the table.
    Make a note of the previous values before u hit enter.  After you have made the change, check if it overwrote that value.
    If not, then you should be fine..If yes, chnage the value under USA to he original values and open up an OSS message.
    Hope that helps..
    Thanks
    Abhi

  • 2007 Daylight savings time - Oracle 9.2

    Hi All,
    My Oracle database runs on Windows 2000 Advanced Server. I have followed Microsoft instructions to update the Daylight Savings Time to new settings. Given this, will I need to apply Oracle patches ?
    Thanks for your help,
    P.

    You will need to patch Oracle, check this blog for more info.
    http://blogs.oracle.com/otn/stories/storyReader$367

  • 2007 Daylight Savings Time Changes

    What, if any, effects will the 2007 changes to US daylight savings time have on the operation of the LabVIEW 7 Express development environment and deployed applications created with it?

    I believe the answer depends on the OS the application runs under.
    If MS has there act together and the machine in question has recieved updates, there should be no issue.
    If you are running Unix (or a variation o such), a patch must be applied (at least that was the story my wife gave for working all night Saturday night).
    I can not answer this Q for Mac or LV-RT running under Pharlap.
    Ben
    Message Edited by Ben on 02-27-2007 10:24 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Has anyone had problems in v5.0a of Iplanet calendar installed on a Sun box with creating events and daylight savings time?

    Events created around 4/6/2002 at 8pm get created with the wrong time (9pm) and there are several other creation and display problems tied to Daylight Savings in April and October. Version 5.1 of the software seems to fix that but we are looking for a fix until we can upgrade. We have been using Windows systems to access the calendar.
    Thanks.

    We have not seen exactly this, but many users appointments are lining up in the wrong time slots. Also, when scheduling, the time display is off by an hour. We have found what looks like a temporary fix.
    We noticed that the problem only affects users who have the start of the week set to Sunday (when daylight savings time started). Setting the week to start on Monday fixed our display problems (you can do it in the users, options section).
    I am placing a support call w/SUN.

  • E-Load/e-ME and Daylight Savings Time Change

    If you are using e-TEST suite versions 8.10 or older, please see the following knowledge base article on updating your JRE for e-Load and e-Manager Enterprise.
    http://qazone.empirix.com/entry.jspa?externalID=201&categoryID=15
    (you must be logged into QAZone to view this link)
    It is recommended that e-Load and e-Manager Enterprise customers update the JRE on their e-Load and e-ME server machines using the SUN JRE patch referenced in the article.
    e-TEST suite version 8.20 which is releasing this week does not require any update.
    Message was edited by: jfernandes

    My problem is that now CFMX 6.1 thinks that it is 8 hours
    later in the day
    than it really is (it is stuck on GMT now) and I am unable to
    get CFMX to
    acknowledge the operating systems clock. :-(
    "GregK" <[email protected]> wrote in message
    news:eord35$5mq$[email protected]..
    The technote for this issue:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=d2ab4470
    has
    another
    link to a technote which addresses null pointer exceptions
    after upgrading
    the
    JVM on CFMX 6.1 systems:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb400232
    The hotfix
    described in that technote gives a fix for CFLDAP and
    CFSERVLET tags after
    the
    new JVM is installed.
    The important thing to note is that Adobe feels that
    daylight savings time
    will indeed present a problem for ColdFusion applications.
    Unfortunately,
    the
    problems are not explained in any detail. I can guess that
    functions like
    DateDiff( ) may calculate incorrect values when spanning the
    changed weeks
    of
    daylight savings time. As others have suggested; however,
    simply retrieving
    the system time, i.e. Now( ) function may not be affected as
    long as the
    operating system clock is set correctly.
    Hope that helps.

  • Energy Act of 2005 and Daylight Savings Time

    We currently use Sun Studio compilers. We use the embedded tools.h RogueWave libraries. The Energy Act of 2005 changes the dates for Daylight Savings Time starting in 2007. Will there be any patches from Sun to handle this? We currently use RWZoneSimple which is extensible, but we were hoping for an update from Sun.
    Thanks in advance. Sorry if this has been covered, I just couldn't find anything.
    Further Reading:
    http://en.wikipedia.org/wiki/Energy_Policy_Act_of_2005

    The RW Tools.h++ library that comes with Sun Studio has been updated with the new DST rules. I don't think the patches have been released yet.
    If you have a service contract with Sun, you can get a pre-release version of the patch via your support channel.
    Otherwise, check the Sun Studio patch page from time to time
    http://developers.sun.com/sunstudio/downloads/patches/index.jsp
    Look for a C++ compiler patch that includes a fix for bug 6456479.
    RW Tools.h++ does its own DST calculations. Other libraries rely on the Solaris functions in libc. Patches for Solaris are available now as follows:
    S10 - 118833-24(sparc), 118855-19(x86)
    (The fix is included in S10u2.)
    S 9 - 112874-34(sparc), 114432-24(x86)
    S 8 - 108993-62(sparc), 108994-62(x86)

Maybe you are looking for

  • Getting first and last day of week

    Dear all . Is there any funcion module which gives first and last day of the current week . Eg . todays day is 15.11.2006 start date of week : 13.11.2006 end date of week : 19.11.2006 in the same way I want how many days are there in month . Eg : for

  • How do I update a bean value from an AJAX call?

    Hi all, How do I update a bean value from an AJAX call? I suppose I could write a servlet to do it. However, this seems like a common problem, so I was wondering if there was some built in solution. Thanks, Grae Edited by: caalip2 on Mar 30, 2010 1:0

  • Sender Agreement SWIFT Configuration

    Hi Guys, I need your expertise regarding the SAP SWIFT configuration, i am following a PDF file (ConfGuide_SWIFT_602_v0_4.pdf). Basically, this is what I have done so far. 1. Create a business service and modifying the receiver tab page according to

  • Is there a known issue with iPhone 5s sucking data?  This is getting expensive.

    I have had to increase my data usage from 4GB to 8GB and now am at 75% of usage with about a week to go. I want to avoid having to pay for 10GB this month.  Several user community groups at verizon seem to point the finger at the iPhone 5s and a bug.

  • Where do we report bugs?

    We're all excited about the development of Flash Catalyst. It would be great if we could report bugs to help Adobe improve the quality and stability of the product. Here are some ideas: Create one thread for reporting all bugs, keep it at the top of