TimeZone and Region

Hello folks,
This is regarding mapping of Date, Time Zone and Region.
Currently our system receives an event. Our Current application captures the event reception time using Date constructor and saves it in DB. We also get the Region, usually Midwest or West. We have to convert the reception time using the Region field on the event.
Since our app servers are in Midwest region, the reception time stamp value will be Central even though the region from which the event is received is West. We need to translate the reception time based on the region, in above case to US/Western time.
Any pointers as to how to do this translation, so that it doesn't matter where our app. servers are running.
JY

get.it.over wrote:
Hello folks,
This is regarding mapping of Date, Time Zone and Region.
Currently our system receives an event. Our Current application captures the event reception time using Date constructor and saves it in DB. We also get the Region, usually Midwest or West. We have to convert the reception time using the Region field on the event.
Why?
Since our app servers are in Midwest region, the reception time stamp value will be Central even though the region from which the event is received is West. No it won't. The java.util.Date data in the Sun VM is always in UTC (no daylight) timezone. Unless you are using a custom built VM or a different VM which doesn't do that, then that will be true.
We need to translate the reception time based on the region, in above case to US/Western time.
Any pointers as to how to do this translation, so that it doesn't matter where our app. servers are running.First I would guess you need to understand that you have one or both of the following problems.
1. A display problem
2. A storage/persistence problem.
You solve them independently. For the display problem if you need someone in Kansas to see a timestamp value for a timestamp created in Floriday you must first insure that the business (not technological side) understands what it is exactly that they want to see. Presuming that they ALWAYS want to see a local value (which in many businesses is not the case) then you do one of the following
1. Deliver the data (not string) to them and let their VM display it.
2. Have the client deliver a timezone to you as part of the request and then you create an appropriate string using SimpleDateFormat.
Note that option 2 is probably going to require a display format as well. Again however probably that requires business input.

Similar Messages

  • Aperture ... Bug .... timezones and smart albums

    Hello everyone,
    i've just jumped into the mac world a week ago, just bought my first macbook ! Yeah !
    I decided to give Aperture a try, and given i've played with it now for 2 days, if this bug I found is really there, NO WAY am I going to pay for such software !
    I've been using Picasa on PC for the past couple years now.
    Its handling my photo library extremely well: over 50gb of photos, 10 years worth of photos.
    So after looking at all the Aperture videos on the apple site, I decided to give it a try to replace my picasa, since there is no picasa for my new mac.
    The bug I found (and I'm a newbie !, 2 days of playing, struggling to import my pictures, and bam ... bug .... hummmm).
    I tried importing only 1 folder in my library.
    I'm french and this summer, went to USA for holiday. Western deserts and all.
    So, I took my folder:
    2008 08 09 - USA Grand West
    And tried importing it.
    It contains around 100 photos of the 1st 3 days of the trip.
    My camera was set to French time, so at import I appreciated the "Change time thingy" and set it to Los Angeles time.
    Did the import in a new project.
    Great.
    All pictures in the project. Exif Date updated to los angeles time. GREAT !
    Now.
    I want to have them show up on a day to day basis.
    So, I created smart albums giving the date I wanted.
    August 9 2008, August 10 2008 and August 11 2008.
    It DOES NOT WORK ! BUGGGGGGGG
    photos taken on the 3rd day, having correct EXIF date metadata, show 11/08/2008 for the date (correct), however they are not shown in the August 11 2008 album !
    They are shown in the August 12 2008 album !
    Reason !
    The smart album is using the wrond date. The French one.
    Since there is 11 hours difference.
    Some late August 11 (Los Angeles time) pictures are pushed to August 12 (early morning French time).
    Am I the only one with this bug ?
    The only fix I found for now that works, is adding 3 rules to the smart albums:
    - exif: day of the month = 11
    - exif: month of the yar = 08
    - exif: year = 2008
    That works.
    However there is NO WAY, i'm setting up 50gb worth of smart albums having to apply 3 specific rules to compensate for a bugged out calendar rule that does not work.
    Any ideas ? fixes ?
    Thanks
    Regards
    Tim

    Hum, i'm not sure I understand what is going on, or what you are describing.
    you say: "... Aperture is correct in it's assertion the image was taken on 12th"
    I dont understand.
    When i've done the import, and look at that pictures metadata, the date/time is corrected. It shows up as 15:42 20080811 (youre writting).
    So if the metadata is correct, I really dont understand how the computers time and timezone has any effect on the smart albums ... could you explain ?
    Unless what you are suggesting, is that the smart album date is applied to the computers time zone, and thus when searching for the files, it automatically does a conversion of the time of the picture to fit the computers timezone => thus my 15:42 20080811 set to Los Angeles time zone, is researched using a French timezone and thus found on 00:42 20080812 ?
    Wow, if so, this would be a stretch !
    And if this is the answer, I do not understand the "feature" to import using a different time zone, and not be able to search according to it ?
    There is effectively no point?
    In respect to the workaround you describe. Its effectively what I did, I sorted using 3 criterias: exif day of the month = 11, month of the year = 08, year = 2008. And for some reason that works !
    Would there be another workaround? Instead of using the TimeZone panel, import them untouched, and doing a batch Time change on the pictures once imported and leaving them at the same Paris timezone, but compensating for 9 hours, effectively, bringing them to 15:42 Paris time, instead of Los Angeles time ?
    If my memory is correct when having played with this, the batch time modification, did not compensate the days: Effectively, clicking 9 times on the down arrow when showing 00:42 12th did not change the 12th into an 11th ...

  • Is it possible to have track and region parameters boxes under the inspector hidden by default when creating a new track?

    I often need to access the effects section and/or select a different midi instrument and have to manual minimize these boxes. It would be nice if I could have these hidden by default as I'm accessing the portions covered by the track and region parameter boxes more frequently than I'm accessing the boxes themselves.
    Thanks!

    Before answering your question, you have to make sure you understand the difference between the different track types in GarageBand.
    Tracks, you record your music on
    There are three types of those Tracks.
    MIDI Tracks (aka Software Instrument Tracks)
    Audio Tracks (aka Real Instrument Tracks)
    Drummer Track (only one per Project)
    Global Tracks
    These are the Tracks that can be shown/hidden at the top of the Tracks Area for specific purposes.
    Arrangement Track
    Movie Track
    Transposition Track
    Tempo Track
    Master Track
    This Track can also be shown/hidden in the Tracks Area. Please note, you cannot delete that Track, only hide it, similar to the Global Tracks
    Regarding the Tracks you record your music on,  you can delete any of those. It doesn't matter if you created them or there are part of a Template (maybe that  is what you refer to as the default track). Once you delete the last Track, the "New Track Window" will pop up to add a new track.
    I will explain all that in much more detail in my manual "GarageBand X - How it Works".
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • CD/DVD drive does not read all DVD formats and regions

    Hi
    My Teac-dw-224e-a does not read all DVDs formats and regions.
    It does read CDs but no DVDs at all.
    Not DVD-R and not even regular DVDs. I have checked the region of the DVD.
    I have reinstalled the driver and also tried with different software.
    What can I do?
    Please help!

    Hi
    It is possible that your DVD drive has wrong region settings.
    In this case it is not able to watch all possible DVD movies from different regions.
    Of course you can change the settings 4 times. But after this changing the settings are fixed and its not possible to change it anymore.

  • In the advanced tab of languages and Region the time and date formats will not change

    For a certian Application I am using I need to change the format of the Time and Date. I had no problems in Mountain Lion. In the advanced tab of languages and Region the time and date formats will not change. I need the date format to read as 01/01/14 and time format to read 13:00. As I said this was easily done in Mountain Lion and all previous Apple OS. I suspect it's an issue with in the OS.

    You're right, it has been that way for a long time. I've never bothered reporting it as a bug since it's simple enough to deal with, but reporting it would be a reasonable thing to do.

  • Region 1 (NTSC) and Region 2 (PAL)

    Is it possible to watch both Region 1 and Region 2 DVDs on my iMac? I currently live in the UK and have many region 2 (PAL) DVDs, I am about to move back to the US and would like to continue playing my Region 2 )PAL) DVDs but would also like to play my Region 1(NTSC) DVDs I have back in the states. Is there any way I can continue to watch my UK DVDs?
    Currently I can only 'switch' between regions 5 times, then I am done, I've already switched once due to my move to the UK.
    Cheers,
    Justin

    MacTheRipper will save the DVD to your hard disk and delete all region codes at the same time, so that you can view them from your hard disk. As the process is pretty fast (a few minutes, depending on the DVD) it can be used to bypass the region coding. It will create a VIDEO_TS folder that you can open with DVD Player (the app that came with your Mac and is part of OS X). It will take a LOT of HD space (up to 8 GB) so you may have to erase them after viewing.
    VLC, on the other hand, will replace DVD Player and decode DVDs from both regions through a software process. DVD Player will still pop-up and ask you to change your drive's region coding, unless you change your Systems Preferences (Hardware > CDs and DVDs > When I insert a video DVD : set to ignore or to open VLC, instead of DVD Player which opens by default). VLC will not save anything to disc.

  • How to change color of tables and regions in OA Framework pages

    Dear all
    I want to change colour of tables and regions of oracle standard pages.One way to do it is that I can add code for tables and regions CSS definitions in for each page in correspoding CO,which is not feasible since we have large number of COs in standard pages.I heard that oracle has provided some method to change look and feel of the pages.If anybody knows about it ,plz do let me know.
    Thanks in advance
    Bhupendra

    Check personalization guide and read out "Customizing Look-and-Feel (CLAF)" Topic.

  • Use of Timezone and method inDaylightTime

    I'm trying to find date and time for DST start for a timezone. I use Java classes TimeZone and GregorianCalendar. To find out which date and time is DST I use the method timeZone.inDaylightTime(date). The code that is shown below finds the correct date, but I can't get time of day when DST starts correct. (I know that date/time of timeZone.inDaylightTime(date)is GMT time). Can anybody help me?
    Code example:
    GregorianCalendar gc = new GregorianCalendar(year,GregorianCalendar.JANUARY,1);
    int hour =0;
    //Run through all months of year
    for (int i = 0; i <= gc.getActualMaximum(GregorianCalendar.MONTH); i++)
    //Run through each day of the month
    for (int a = 0; a < gc.getActualMaximum(GregorianCalendar.DAY_OF_MONTH); a++)
    //Run through the hours
    for (int s=0; s<24; s++) {
    gc.set(GregorianCalendar.HOUR_OF_DAY,hour);
    startDate = gc.getTime();
    if (timeZone.inDaylightTime(startDate)) {
    found = true;
    break;
    hour = hour + 1;
    if (found) {
    break;
    }//end running through hours
    //Get next day of month
    hour = 0;
    gc.roll(GregorianCalendar.DAY_OF_MONTH, true);
    if (found) {
    break;
    gc.set(GregorianCalendar.DAY_OF_MONTH, 1);
    gc.roll(GregorianCalendar.MONTH, true);

    If I for example use timezone Europe/Oslo I expect the
    loop to stop on date 30.mar.2003 at 01:00. (DST start
    02:00 local time).There are two problems with this. First, your program stops when it encounters a date that IS in DST. 01:00 is not in DST, so why would it stop there? It stops at 02:00... which is where the second problem comes in. There are two names for this particular instance in time -- 02:00 standard time and 03:00 daylight saving time. Java chooses to use the latter, so your program stops when it encounters 03:00, daylight saving time.
    Then I would add one hour (which
    is the rawoffset (timeZone.rawoffset)) to the given
    timezone to get local time.What does raw offset have to do with this? That's the difference between the local time and GMT, not the number of hours that the clock moves forward when daylight saving time starts.
    I use Could there be a bug in jdk1.3.1_02, could there
    be a bug??Don't think so. Try this change to your program: addDateFormat df = DateFormat.getInstance();
    df.setTimeZone(timeZone);at the beginning, andSystem.out.println("Try " + df.format(startDate));just before you test inDaylightTime(startDate). You'll see that the hours increase by 1 except that the last date displayed appears to be 2 hours after its predecessor. As I explained earlier, it really isn't, that's just the daylight saving change.

  • Country name and region name in smartform

    hi friends
    1.  In smart forms I want  to display country name and region name in template text . 
    can any one help me how could I write code for it and the procedure.
    2.  IN scripts  komk-fwkrt = '1.00.200,32'.  
       but it should be displayed as 1,00,200.32
    how should I make changes for this field?
    thanks and regards
    deepika.

    Hi deepika,
    For your first question, I happened to have written similiar codes recently.
    If you have the country code and region code, you can read the country name from table T005 and region name from T005s.
    You can create a new routine for this and call it from Initialization.
    Hope this helps.
    Shane
    Edited by: Shane Chen on Jul 15, 2009 10:35 AM

  • OAF - Pages and Regions - xml files migration

    Hi All,
    Can anybody explain me the answer to the following questions
    1) Why custom developed Page and Region Files should not exist under $JAVA_TOP ?
    2) Why Standard page and Region files exists under respective $XXXX_TOPs/mds  ... directory's

    Hi SushantSharma,
    We put custom page XML files under $JAVA_TOP/xx/oracle/apps/....
    Is it correct ?
    In my case
    Why some clients were following to store that XML Files as well as java, class into $CUST_TOP/XXXX/ .... as backups and
    importing the script is also done from this $CUST_TOP/XXXX/.../*PG.xml only for Page and Region files.
    and only class files were being stored in the $JAVA_TOP/....
    So there is no concept of storing page and region files under $JAVA_TOP/... is it correct ?

  • Region Attributes and Region Header on Tab Template. Apex 5

    All,
    In order to have my pages not scroll, but instead have a region scroll I would do an overflow on the region header and attributes in apex 4.
    When using this same method on a tab template, all of the reports within the tab templates get shown one after another.
    eg;
    region attribute......style="width:350px;height:758px;"
    region header..... <div style="overflow: auto; width: 350; height: 700px;">
    it does make the region scrollable, but the tabs stop working and instead are displayed one after another.
    Does anyone know of a fix / workaround?

    Hi gianpagi,
    gianpagi wrote:
    i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
    I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div>  but without success.
         Please mention the theme and template you are using for the Interactive Report.
         Can you re-produce the issue on apex.oracle.com and share the workspace credentials, so that can have closer look at the issue?
    Regards,
    Kiran

  • Trees and regions

    Hi,
    i have a strange problem with trees. I create a tree on page 0 using the wizard. by doing this, the tree gets into a region i cant modify during the creation process. After the wizard is done i can see and use my tree... all is fine. Then i want to put my tree to the place where i want it and set it to an other region. what happens -> tree gone. The buttons and the label is still on the scree but the tree itself ist vanished and it does not come back even if i move it back to the old region. i tried a lot of things but but cant make the tree to appear again in my application.
    Is there something special on trees and regions?
    regards in advance
    Hannibal

    I was not able to reproduce, can you show it on hosted site or give more detailed steps to recreate?
    Scott

  • Registration - my country (BRazil) does not appear in Country and Region list

    Hi !
    I’m trying to register for Power Bi Preview, but my country (BRazil) does not appear in Country and Region list.
    I tried to use another country, but I need a valid address.
    How do I proceed to register?
    Thank you,
    M.Penner

    Power BI is not available in Brazil at this time. We will continue to add countries over time. We have
    no timing updates for additional countries to share at this time.
    This is great feedback to see the interest!
    Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • [svn:osmf:] 10700: Extending layout and regions unit tests.

    Revision: 10700
    Author:   [email protected]
    Date:     2009-09-29 15:02:28 -0700 (Tue, 29 Sep 2009)
    Log Message:
    Extending layout and regions unit tests.
    Modified Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/MediaFrameworkTests.as
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/gateways/TestRegionSprite .as
    Added Paths:
        osmf/trunk/framework/MediaFrameworkFlexTest/org/openvideoplayer/layout/TestLayoutUtils.as

  • Hi there, I moved to a new country (Luxembourg ), my previous card is not working anymore, I am trying to change country and region but it looks like the option is not available, could you support on the issue please ? Thx ahead, Corneliu

    Hi there, I moved to a new country (Luxembourg ), my previous card is not working anymore, I am trying to change country and region but it looks like the option is not available, could you support on the issue please ? Thx ahead, Corneliu

    CHANGING APPLE ID/EDIT ACCOUNT INFORMATION/CHANGE ITUNES COUNTRY
    Tap Settings / iTunes & App Stores, then tap the Apple ID signed in. Sign out of the current Apple ID account and then sign in with another account or create a new Apple ID http://support.apple.com/kb/HT2731?viewlocale=en_US
    Go to settings/facetime and tap the ID there and log out and log in with new ID.
    Go to settings/messages and turn off imessages wait 30 seconds and turn it back on, go to “receive messages  at” tap on the ID there, sign out and sign in with new ID.
    Go to settings/icloud and delete the account and when prompted select “keep information on your device” then turn it back on with the new ID.
    To edit account information tap Settings / iTunes & App Stores / Apple ID: / View Apple ID
    To change your iTunes Store country, sign in to the account for the iTunes Store region you would like to use, tap Settings/iTunes & App Store/Apple ID/View Apple ID/Country/Region
    Read this article for information http://support.apple.com/kb/HT1311

Maybe you are looking for

  • Adobe Photoshop Elements 12 erkennt nicht das Internet nach Installierung, was kann ich tun?

    In "My Adobe" habe ich das Produkt registriert, aber die Software erkennt das Internet nicht und die 7 Tage Frist ist abgelaufen und kann nicht mehr aktiviert werden. Wer kann helfen bei diesem Problem?

  • Screen enhancement in ME51N/ME52n/ME53N

    Hi All, I want to display 2 additional tabs in the line item of ME52N tcode. There is already an enhancement MEREQ001 created in a project named MEREQ001. I tried to do the changes in the existing screen after deactivating the project, But after crea

  • Error message after iTunes upgarde

    I just upgraded iTunes to 9.0.2 but now when I try to open it, I get the following error message: "The file "iTunes Library" cannot be read because it was created by a newer version of iTunes." Everything worked well until I upgraded. This message is

  • File Path Missing

    I cant relocate my original files because the file path is missing all together. The path is replaced by a singe dot (.). This has happend to alot of my pictures. I have tried to both reapir and rebuild the library. Nothing works. Anyone have a ide o

  • Can I set up AirportExpress for iPad2 without needing to use MacBook

    I want to use my iPad2 with hotel Ethernet cable with out requiring my MacBook. Is a computer required to set up the AirPort Express or can it be done from iPad2