Getting GMT time to make a world clock

I'm currently living in Greenland with most of my family in Denmark. There's a time difference of 4 hours, and I want to make a world clock on my web-page, showing the time in Greenland and the current time on the computer logged on. I use a script from Kurt Grigg from the JavaScript Kit-web page, but I can?t use the time.gethour() command, 'cause with this I only get the local time on the computer, not how it?s placed according to GMT. Do anyone know a work-around to this problem?

Have a look here:
http://forum.java.sun.com/thread.jsp?forum=31&thread=443496

Similar Messages

  • Help with time issue needed.  World Clock times 1hr ahead of correct time

    although the time on the iPhone home screen is right (top of screen). That is, since I'm in central time, the iPhone shows, say 5:14 (time now) but a city in World Clock in central zone shoes 6:14. Other cities in other zones are off by the +1hour amount. Many calls to Apple and AT&T, now the finger pointing has started.
    Multiple phones in my location have the same problem. All three in our family, two owned by a colleague and 2 on display at the AT&T store.
    The problem clears up when I'm well out of the area, say Nashville or Bowling Green but reappears when I'm back home in West Kentucky. AT&T says their network is fine, must be the phone or app; Apple says since multiple phones with several versions of the operating system are showing the issue, must be AT&T.
    Ideas?
    Message was edited by: BillfromMurray

    I am having the same issue (clocks not matching) with my iPod Classic. Definitely not an AT&T issue!

  • How to get GMT time in Millis?!

    Hello,
    I'm trying to get the currentime in millis as per GMT timezone.
    GregorianCalendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
                        java.util.Date d =  c.getTime();
                        timeNow =  new Timestamp(d.getTime());This is just one of the attempts. Could someone point me out with code, without having to use Joda Library?

    right, but actually one needs not to be bothered about the DB. The question is simple:
    I've a Timestamp in GMT (a).
    I want to compare it to the current time. How to do?
    I can convert a into millis.
    Now how can I get in millis what's the time in GMT??
    I thought this would work:
    Calendar c  = GregorianCalendar.getInstance(tz);
                        c.set(Calendar.SECOND, 0);
                        c.set(Calendar.MILLISECOND, 0);
                        long cc = c.getTimeInMillis();
    Timestamp result = Timestamp.valueOf(rs.getObject(sessionStartTimeColumn.getName()).toString());
                        result.setNanos(0);
                        result.setSeconds(0);
                        long rr = result.getTime();
                        assertEquals(cc,rr);But the problem, persists, c.getTimeInMillis() will not give the millis as if in GMT. So that's the real problem, that's breaking my nerves. I understand why it's happening, but no way around??
    Can someone tell me how to get the millis that someone in GMT would get using System.currentTimeMillis()??
    PS: I don't use rs.getTimestamp() because the JDBC I'm using seems to have a bug there.

  • Displaying GMT time in clock app

    Hi,
    In the clock application, how does one show GMT / UTC time?  In the World Clock part, there is no city listed as GMT/UTC.
    Some people have suggested that Reykjavik be used.  That's a workaround.  Is there a better answer, or can I submit a feature request?  I am running 10.3.1.1767.
     RWW

    If I am not mistaken the original request intended to ask for a possibility to diplay real UTC/GMT.
    In WInter the time in London is the same as GMT, but in the summer the UK is using summer time. The clock for London would show GMT+1 then.
    According to this Wikipedia entry Iceland is using GMT+0 all year round.
    On a BB10 device this is problably the closest you can get right now.
    It would be nice if Blackberry could and an extra UTC entry to the list of cities/time-zones.
    CU
    Stefan

  • How do I make world clock black

    Does anyone know how to make iPad world clock black to sit by my bed I don't like bright light when white

    Individual clock colors change from white to black depending on the time of day for the location (black at night, white in the day). This is not configurable.

  • HT4623 HOW TO CHANGE TIME ON MY IPHONE 3GS I HAD UPGRATED IT TO 6.1.3 WORLD CLOCK AND ACTUAL TIMING IS DIFFRENT

    how to change time on iphone 3gs
    world clock n actual timing is different
    ios6.1.3

    That's because iTunes 11 requires Snow Leopard or higher.

  • World Clock Action Script

    Dear All,
    i am try to make a world clock for website in flash how can i do?
    one reference link is attached WEBLINK
    how can they done this clock

    Here's some simple clock code. Just do as many of these as you like and offset the hour for the different time zones.
    http://www.flashuser.net/flash-tricks/tips-tricks-11-customizable-flash-analogue-clock-as3 .html

  • World clock 1 hour to early in Amman

    Last week we were in Amman Jordan with à group.
    We and all Iphone / IPad users woke up one hour to early due to wrong time in the iOS world clock !!!
    What actions  are recommendable to protect future users of the iOS alarm clock ??

    Hey there Evermoor,
    It sounds like your World Time section of the Clock app is reporting the incorrect time. This information is privided to the phone by the cellular carrier when it is set to automatically update. Use the following information to help determine of the time is being set automatically. If not, then turn that on and see if the time corrects itself. If not then use the rest of the information to reach out to your Carrier.
    iOS: Troubleshooting issues with date and time
    http://support.apple.com/kb/ts3920
    Follow these steps. Test after each step to see if the issue is resolved.
    Ensure that the version of iOS on your device is up to date.
    If the option to enable date and time automatically is available, turn it on. Tap Settings > General > Date & Time.
    Ensure that your time zone is set up correctly. Tap Settings > General > Date & Time > Time Zone.
    If the incorrect date, time, or time zone is being set up automatically on the device, please notify your cellular provider. In the meantime, tap General > Date & Time and turn off Set Automatically. Then set the appropriate time and time zone manually.
    Note: The option to set automatically might not be available on all carriers in all countries.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • IPhone World Clock doesn't show the correct times

    How do I get the iPhone to show the correct World Clock times. I have the time zone set to San Diego and the clock time is correct. When I set San Diego as one of the World Clock times it shows a time 7 hours behind. New York is 4 hours behind instead of 3 hours ahead, the same 7 hour bust.

    emr1100 ,
    Have you tried resetting the phone.? Hold down the sleep/wake button and the home button until it restarts. If that doesn't work, try a restore....please back up your data with a sync before you restore the phone. If that doesn't work take it back to the Apple stor and let them take a look at it. They will fix it or give you another phone. Another idea...call AT&T to see if sometining can be "reset" on their end. You never know ...that might work also.
    will2b

  • World clock wrong times

    Hello
    Has anyone noticed on the new update on iso on the iPhones the world clock is showing the wrong times around the world.
    Is anyone else getting this too.
    Thanks
    Ramo

    Hmmm....
    The good news - Mine just got 1.0.2 installed [I presume it failed the initial attempt because I'd run "ifuntastic" to get custom ringtones.....]
    Anyway, I attacked the World clock (now back in its default "Cupertino" time zone - Which happens to be me, so I added New York, London and Madrid - All show up correctly, and for me very "elegantly":
    Cupertino: 5:20pm today
    New York: 8:20pm today
    London: 1:20am tomorrow
    Madrid: 2:20am tomorrow
    Looks good to me.....Sorry, I thought I had it!,
    Cheers,
    Ian

  • The world clock on my IPOD touch is not telling the correct time

    My IPOD touch world clock is not displaying the correct time and the edit feature is not working to change the time

    See:
    iOS: Wi-Fi or Bluetooth settings grayed out or dim
    If not successful, an appointment at the Genius Bar of an Apple store is usually in order.
    Apple Retail Store - Genius Bar

  • How to get the current GMT time in java

    Hi,
    How to get the current GMT time in java
    Thanks

    System.getCurrentTimeMillis() or new Date().
    [url http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates
    [url http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format

  • I have songs both purchased online and downloaded from cd's that itunes is unable to locate. What can I do to get them back and make sure it doesn't happen again as this is the second time this has happened?

    I have songs both purchased online and downloaded from cd's that itunes is unable to locate. What can I do to get them back and make sure it doesn't happen again as this is the second time this has happened?

    Great, that's what I was looking for.  Thanks for the quick response.  I knew that that feature existed in this router, but I couldn't remember what it was called or where to find it.
    The funny thing is, I recall distinctly setting up the DHCP reservation initially, but when I went to check it now, the reserved client list was empty.  I have no idea how it could have become depopulated, thus opening the door for internal IP address reassignment of the Remote Desktop computer which led to the RDP ports no longer being forwarded to the right internal IP address and thus the failure of the Remote Desktop connectivity.

  • Widget world clock shows incorrect time

    widget world clock shows incorrect time.. how can i fix this?

    There are two possibilities: (1) your computer's time is wrong. Open System Preferences, select the Date & Time tab, and either set the time manually or select a time server. If you choose the time server click on the Time Zone tab and choose your correct time zone. (2) click on the i on the World Clock widget and select a city near you (that's in the same time zone as yours.)

Maybe you are looking for

  • How do I find out what app is connecting to the internet

    Something on my iPhone 4 (fully updated) is constantly trying to connect to the internet via 3G, costing me a lot of money when I am not connected via WLAN! I can't work out what it is, but presume it is an app. How can I find out what is doing it? I

  • Finding Photos that have been saved as Tiff

    I've been using Blurb to make photo books, and love the results. One of the best things, is that it will read my iphoto library without me having to upload the photos to another website. Problem, is it will only read JPEG or PNG images in iphoto. It

  • Photoshop asks for serial number even when I sign in with my Adobe ID

    I have a Creative Cloud membership and I have installed Photoshop and Illustrator. Illustrator works fine, but when I run Photoshop it asks me to license the software. I sign in with my Adobe ID, but then it tells me to enter a serial number. I've tr

  • ITunes Crashing on startup

    This has never happened before..I've had Itunes for a while now and suddenly it started crashing as soon as I start it. I tried reinstalling but the install would error at the end. Any suggestions?

  • JSF + Spring / AOP

    Hi, I have a problem when I try to run a web application where I use JSF with Springs AOP Here's my spring.xml: <beans> <!-- Bean Classes --> <bean id="beanTarget" class="BusinessLogic" /> <!-- Advice classes --> <bean id="theTracingBeforeAdvice" cla