Daylight

Hi all,
Problem with Date format
I am successful in formatting the date in my last thread. I am reposting it because its been a long time it got posted. Thats why I am reposting it. Here in the query, my problem is the daylight savings, from oct 30 2005 an xtra hour was added for that day...means the hours will be like 1:00 2:00 2:00 3:00......so in the package i was using, we send a value and it returns date.....values in normal days will be like 1,2,3,4,...24 but for this day its like 1,2,25,3,4,.....24....then how can i convert that 25 into same 2:00 AM for that day.
Hope this is understandable...
Thanks,
GK.
Message was edited by:
user492324

I guess you might have to fix (update) the table as to first choice.
An example of DECODE as follows:
ops$marcio@LNX10GR2> var x varchar2(4)
ops$marcio@LNX10GR2> exec :x := '2500'
PL/SQL procedure successfully completed.
X
2500
ops$marcio@LNX10GR2> select decode(:x, '2500', '0200', :x ) from dual;
DECODE(:X,'2500','0200',:X)
0200
1 row selected.
ops$marcio@LNX10GR2> exec :x := '2000'
PL/SQL procedure successfully completed.
X
2000
ops$marcio@LNX10GR2> select decode(:x, '2500', '0200', :x ) from dual;
DECODE(:X,'2500','0200',:X)
2000
1 row selected.

Similar Messages

  • 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

  • Daylight savings all-day events issues in updated iCal for iPad

    After purchasing new MBP, Genius Bar told me to update to new iCal. I have noticed that any all-day events taking place on the date that daylight savings begins (3/13/11 i.e.) lasts on iPad's iCal for two days. When I attempt to edit, event still displays for two days. Guessing it is because that day technically lasts for only 23 hours. Genius Bar consultant had no suggestions for a remedy. This error appears for 2011, 2012, 2013, 2014 daylight savings beginning dates. The error doesn't seem to be a problem for the MBP or my iPhone.

    I've experienced the same problem.  I set up a recurring one day event on the first of each month - come April 1 in 2012 the event is spread over 2 days (the end of daylight savings time in Australia) from April onwards.  I can muck around with the event and have it set at one day from April1 onwards in 2012 but there's a recurring event bug related to daylight savings.  I wonder if any alarms people have set for that day will again experience the problems from the past?

  • Iphone calendar off by 1 hour after daylight savings

    i have my iphone synced to my outook 2007 through an exchange server. after daylight savings this weekend, all of my appointments are now off by 1 hour. they are all correct in my outlook and on the exchange server (verified by web browser). i've tried deleting the exchange account from the phone and reinstalling, but that doesn't work. also, when i try adding a new appointment on my iphone, it shows up off by one hour in the exchange calendar. my iphone is currently showing the correct time.
    anyone know what the heck is going on?

    I also had success using this method, from above:
    On iPhone, go to Settings>Mail, Contacts, Calendars.
    Scroll way down to Time Zone Support. Note that it's listed as GMT-4. Turn slide button to OFF, then back to ON. Note that it automatically goes to Washington, DC (GMT-5).
    Calendar appointment times now correct.
    Time on the iPhone updated automatically for daylight savings, but the Time Zone Support function didn't make the one-hour shift; they ended up out by an hour from one another. Forcing Time Zone Support to refresh its settings was all that was needed.

  • Daylight saving time off by 1 hour

    Greetings.
    There is a java aplication running on my windows XP professional client. It apparently uses one of the java functions to get the date from my client PC. The problem is that the time in the application is off by one hour.
    I am in the eastern time zone with daylight savings time checked.
    If I uncheck daylight savings time the application time is correct.
    I am using the latest JRE which seems to include multiple version's of the java webstart which I can see in the registry.
    Anybody come across this.
    Over and out,

    just use
    java.util.Date now = new java.util.Date();
    java.util.TimeZone tz = java.util.TimeZone.getTimeZone("Europe/Berlin"); // adjust for your time zone
    now.setTime(now.getTime() + tz.getDSTSavings());
    and
    new java.text.SimpleDateFormat("HH:mm:ss", java.util.Locale.GERMAN).format(now)
    to obtain the formatted time as String.

  • Daylight saving in the NOkia 6233 ?

    Does the Nokia 6233 support Daylight Saving ? If yes, how can I set it in my phone ?

    It doesn't do it automatically, like a PC...it isn't that clever. You need to change it yourself. Be sure to set the time zone rather than change the clock, otherwise the phone may display incorrect times for SMS messages etc.
    Chris
    6230i (the last bug-free Nokia?)
    Vodafone UK contract since 1992

  • Cisco ISE 1.2 Daylight Saving time

    Does ISE support DST change?

    Time Zone = UTC is best practice for a distributed deployment.  Also, remember that if you change the time zone on an ISE, the database is deleted!  So, set this during initial setup.  BTW, for the Eastern Time Zone in the United States, use EST5EDT in order to allow for Daylight Saving Time.

  • SAP systems and Daylight savings for 2007

    Hi,
    We are discussing about the Daylight Saving time changes in USA for 2007 and its effect on SAP Systems.
    <i>"Beginning in 2007, most of the U.S. will begin Daylight Saving Time at 2:00 a.m. on the second Sunday in March and revert to standard time on the first Sunday in November."</i>
    Wondering, if we need to change any variable settings to take into effect? If so, could anyone give details on it.
    Wondering if SAP systems time is getting sync with Database servers or O/S ?
    Thanks,
    Sam

    Hi,
    The beginning of daylight saving time is normally not a problem as the time will jump from 2:00 to 3:00, so seen from SAP that no problem. You will only have a 1 hour hole, as the system had nothing to do for one hour.
    So there are no settings or so to maintain or change. Just let SAP system run...
    But it is different when switching back to "normal" time, as there you will have the so called double hour, and even as SAP is working on a solution to this, it is still recommended to shut down the SAP system for this period.
    (searching for the term "daylight saving time" in OSS should give you some notes explaining how SAP is handling it)
    As i know SAP system is taking the time from OS, but you can se what time the SAP system has, by in the GUI menu to select the "system" => "Status"...
    (In the Popup you can se it in upper right corner)
    Regards
    Rolf

  • 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]

  • Date Time in Coldfusion at Daylight Saving

    Hi
    In coldfusion, I have problem creating Date Time using CreateDateTime when the daylight saving switch. For example
    CreateDateTime(2011,3,13,2,0,0) gives error.
    Also if you do like this
    DateAdd('h',1,CreateDateTime(2011,3,13,1,0,0)) gives "2011,3,13,3,0,0" ie instead of 2AM it returns 3AM. This is happening every daylight saving switch time.
    This is a bug in coldfusion?
    It should be fixed by Coldfusion.
    Thanks

    On 3/17/2011 12:39 AM, Paresh_Patel said:
    >
    When we loop through the 24 hours on daylight saving day e.g
    >
    <cfset startDate = CreateDateTime(2011,3,13,0,0,0)>
    >
    <cfoutput>
    <cfloop from="1" to="22" index="dayNo">
          <cfset startDate = dateAdd('h', 1, startDate)>
          #hour(startDate)#<br>
    </cfloop>
    </cfoutput>
    >
    This will show wrong hours (2 is missing)
    and that means you've fallen into timezone hell.

  • Linked Files in InDesign Now Modified after Daylight Savings Change

    I looked for a discussion on this and couldn’t find one so if there is one already open please direct me to it and my apologies.
    I was wondering if anyone else has run into this problem after the Daylight Savings Time Change on November 6th.
    Starting on Monday, November 7th we have noticed that all of our InDesign files that had artwork files linked to the document are now coming up as being modified in the Links pallet even though that artwork has not been modified. I haven’t recalled having this issue since we were using Quark 4 and InDesign CS.
    All files are stored on Windows servers running ExtremeZIP, all InDesign files are being opened on Mac Intel and Mac PowerPc models running either OSX 10.4 or OSX 10.6. All servers and Macs are sinc’d to pull the date and time from the same server and we verified that they are matching to the second.
    We get the same results if the files are opened in InDesign CS4, CS5 or CS5.5.
    Is anyone else seeing this issue and if so have you been able to rectify it without updating all the links and saving the files.
    I’ve been searching everywhere and I have found tech notes from Adobe that states that this issue was fixed in CS4.0.6 but we are running this version and still suffering from the problem.
    Any help would be appreciated.

    This sounds like an ExtremeZIP bug. Like perhaps your server is not acconting for daylight saving properly in its on-the-wire protocol. I seem to recall there are a number of gotchas about this involving Windows. I would check with ExtremeZIP. Did the file dates/times change as shown by Get Info in the finder? I suppose it would be difficult to tell at this point...

  • Oracle 11 driver causes problem in the day when the daylight saving starts

    Hi everybody,
    I'm facing a really weird problem with daylight saving stuff. So, let me explain:
    I have a table where stores some personal data, which one of the columns is a birth date.
    On this column there is a constraint like: TRUNC(BIRTHDATE) == BIRTHDATE to ensure that the is the same always.
    Now the problem starts:
    When a person is born when the daylight saving starts (+1 hour) (e.g: Belgium 22/04/1930) in our Java application
    that date is described like: Sun Apr 22 00:00:00 CEST 1923
    When the application tries to insert data into the table, it gets a constraint violation exception.
    The configuration I'm using:
    - JDK 6_0_21
    - Oracle driver: 11.2.0.1.0 (ojdbc6.jar)
    - Oracle database: 10.2.0.4.0
    Now the weird part: When I change back to the previous Oracle driver version (10.X), it works perfectly. I've seen this FAQ:
    http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-faq-090281.html#08_01
    and tried both solutions: Set the mapDateToTimestamp property and change from DATE to TIMESTAMP type in the table. Unfortunately, both don't
    work.
    Anybody has an idea how to solve that? (Change back to the previous version is not an option for us, since we had transactional problems with it)
    Cheers,
    Bruno

    You might want to post on ODBC

  • Conversion mapping is losing time zone data during daylight saving time

    We have a problem with conversion of Calendars to timestamp with timezone for the last hour of Daylight Saving Time (e.g. 01:00 EDT - 01:59 EDT) where it is being interpreted as Standard Time which is in reality 60 minutes later.
    We've written a JUnit test case that runs directly against TopLink to avoid any issues with WAS and its connection pooling.
    The Calendar theDateTime comes from an object called TimeEntry which is mapped to a TIMESTAMP WITH TIMEZONE field using conversion mapping with Data Type TIMESTAMPTZ (oracle.sql) and Attribute Type Calendar (java.util).
    We are using:
    Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build Patch for Bugs 5145690 and 5156075)
    Oracle9i Enterprise Edition Release 9.2.0.7.0 - 64bit Production
    Oracle JDBC driver Version: 10.2.0.1.0
    platform=>Oracle9Platform
    Execute this Java:
    SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy HH:mm z");
    TimeZone tzEasternRegion = TimeZone.getTimeZone("US/Eastern");
    Calendar theDateTime = Calendar.getInstance(tzEasternRegion);
    theDateTime.setTime(format.parse("10/29/2006 01:00 EDT"));
    Persist to the database and execute this SQL:
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides the following results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EST -5
    The wrong time zone is in the database. It should be EDT -4. Let's test the SQL that should be generated by TopLink. It should look like the following.
    Execute this SQL:
    UPDATE time_table SET the_date_time = TO_TIMESTAMP_TZ('10/29/2006 01:00 US/Eastern','mm/dd/yyyy HH24:MI TZR') WHERE (time_table_id=1)
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides the same results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EST -5
    Now, execute this SQL:
    UPDATE time_table SET the_date_time = TO_TIMESTAMP_TZ('10/29/2006 01:00 EDT US/Eastern','mm/dd/yyyy HH24:MI TZD TZR') WHERE (time_table_id=1)
    SELECT the_date_time, EXTRACT(TIMEZONE_REGION FROM the_date_time), EXTRACT(TIMEZONE_ABBR FROM the_date_time), EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    FROM time_table WHERE time_table_id=1
    This provides better results:
    THE_DATE_TIME EXTRACT(TIMEZONE_REGION FROM the_date_time) EXTRACT(TIMEZONE_ABBR FROM the_date_time) EXTRACT(TIMEZONE_HOUR FROM the_date_time)
    29-OCT-06 01.00.00.000000 AM US/EASTERN US/Eastern EDT -4
    The correct time zone is now in the database. Let's test reading this with the following Java:
    System.out.println("cal= " + theDateTime);
    System.out.println("date= " + theDateTime.getTime());
    System.out.println("millis= " + theDateTime.getTimeInMillis());
    System.out.println("zone= " + theDateTime.getTimeZone());
    This provides the following results:
    cal= java.util.GregorianCalendar[...]
    date= Sun Oct 29 01:00:00 EST 2006
    millis= 1162101600000
    zone= sun.util.calendar.ZoneInfo[id="US/Eastern",...]
    The TimeZone object is correct since we are using the US/Eastern regional time zone, but the millis are wrong which makes the time EST instead of EDT. The millis should be 1162098000000.
    The conversion from java.util.Calendar to TIMESTAMPTZ loses the actual offset when setting to a regional time zone. It can maintain this info by specifying it explicitly.
    The conversion from TIMSTAMPTZ to java.util.Calendar also loses the actual offset even if the correct offset is in the database.
    Has anyone else encountered this conversion problem? It appears to be a conversion problem in both directions. I know that the Calendar is lenient by default and will assume Standard Time if time is entered during the repeated 1 o'clock hour at the end of Daylight Saving Time, but the Calendars we are using are explicit in their time, so this would be classified as data corruption.
    Nik

    Opened an SR. Looks like there is a problem with conversion either in TopLink or in JDBC.

  • Switch to standard time from daylight saving causes error - iOS 7

    Hi there,
    Today (27-Oct-2013) the time was switched back from daylight saving to standard. When looking my iPhone, I noticed that although the clock correctly displays the current time, the standard weather app still uses the time according to daylight saving (i.e. showing one hour ahead) and what is more interesting, the calendar acts weirdly, showing the correct time, but placing it in the old daylight saving time, i.e. 7:46 AM is shown as a line between 8:00 AM and 9:00 AM! It is really ridiculous and it seems I cannot change these. I restarted my iphone, turned off and on again using carrier provided time, but nothing changed. Any clues?
    Using iPhone 5 and iOS 7.0.2.
    Any help is appreciated.

    Problems with time, time zones have been quite common. Clearly, my brand new, the most forward thinking smartphone has the same bug. Sometimes I wonder why Apple is unable to get basic things work? they simply don't care, that's all.
    Issue with the line materializes itself on my iCal on iMac as well
    I hope, at least alarm will go off at the right time Monday morning
    BTW:  last year when I was on trip to Chile, at one night - suddenly - out of the blue - time changed on all our apple devices.. it's bad when you've got your flight next day and don't know when to wake up weeks later I have found out information Apple did not update their list of timezone changing dates.. for couple of years...

Maybe you are looking for

  • Shortcut-Bug in Bridge CS6 for Mac / Bridge cant' copy and paste metadata

    The cmd-keys / shortcuts doesn't work in the file info panel btw. in the xmp / iptc fields (e.g. cmd+c, cmd+v, ...) of Adobe Bridge CS6 (Mac OS 10.6.8 and 10.7.3). You are not able to cut and paste info from one box to another like previous versions.

  • WLI task assignment in parallel work flow

    I have been working with the WLI for a proof of concept leveraging the task assignment features. Following the worklist tutorial I was trying to assign a task usining a parallel process. The server indicated it was unable to assign the tasks in paral

  • Scenario execution errors not logged

    Hi, in production environment, we start our scenarios by means of startscen.bat. Sometimes, when an error occurs, startscen.bat returns an error which does not appear in the operator log (scenario seems to be still running). Has someone been faced to

  • IOS "Mail" font size keeps varying...

    How do I get Mail on the iPhone/iPad to always display the same font size? Sometimes the font is too small to be readable and I have to pinch outwards to increase it. It gets annoying after several instances... Thanks! Fernando

  • Cant drag files into ID anymore, can only Place, why?

    CS4 and Win7...Generally when I work, I have one window open with all the files Im working with.  To open an ID file, or to drop a text or graphic into an open ID document, I would drag the file over into the ID area.  Since I restored my computer, I