Help! Timezones - Simple yet baffling

From: Sammy (mesammy_at_gmail.com)
Date: 11/25/05

  • Next message: john hanson: "best practice about /var"
    Date: Fri, 25 Nov 2005 17:00:26 +0100
    To: sunmanagers@sunmanagers.org
    
    

    Hi Sun worshippers,

    I have a solaris 8 box in a country 1 hour ahead of the uk.

    I have therefore set the /etc/TIMEZONE TZ to GMT+1.

    I set the time to local time with date <localtime>.

    Two problems:
    1) When I do the date command, it writes GMT - why doesn't it write GMT+1?

    2) When I do date -u, it gives me a time on hour ahead of local time -
    not standard GMT time. If I set the time to GMT+2, then date -u
    gives me the time 2 hours AHEAD of local time!!!!! not what i expected

    What am i doing wrong?

    kind regards,

    Sammy
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: john hanson: "best practice about /var"

    Relevant Pages

    • DiskSuite seems to have severely broken a Solaris 8 host
      ... A client (and, as you might guess because of the local time I'm posting this, ... a mate) is having severe problems with a Solaris 8 box, ... "Any time there's something so ridiculous that no rational systems programmer ...
      (SunManagers)
    • Solaris 8 and Timezone
      ... I have an odd question regarding Solaris 8, I have only had experience with ... Solaris 9 so far so this doesn't apply there. ... I live in Dubai, part of the United Arab Emirates, which is GMT+4. ... However when I select this as the TZ=GMT-4 then the local time is correct ...
      (SunManagers)
    • Re: How to tell Solaris to use UTC?
      ... Im having a problem with Solaris. ... installed on my Computer and when I installed Solaris I had my BIOS ... In *BSD there is a system variable that is added to the BIOS time to ... If you set your TZ properly you should see local time where it is appropriate. ...
      (comp.unix.solaris)
    • Re: How to build this time format?
      ... > I am developing an application on Solaris 2.7 platform which C. ... You're missing the centuries. ... > '-' Local time in in quarter hours retarded in relation to UCT time ...
      (comp.unix.programmer)
    • Re: Lat/Lon to Local Time
      ... Longitude to local time ... will be in an unnatural zone to keep them with the rest of the country. ... Some areas near to the equator don't bother with daylight saving ...
      (sci.geo.satellite-nav)