realbasic-nug
[Top] [All Lists]

Re: Timezone

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Timezone
From: Mike Bailey <mike at realsoftware dot com>
Date: Sun, 30 Dec 2001 12:58:45 -0600
On 12/30/01 12:50 PM, "Kevin Ballard" <kevin at sb dot org> wrote:

> On 12/30/01 12:55 PM, "Mike Bailey" <mike at realsoftware dot com> wrote:
> 
>> This might help you out.  The following "should" return your GMT offset:
> 
> Just tried it on OS X. It returned -500 when it should have returned -5.
> What do other people get? I want to know if it's simply a matter of it
> returning the answer times 100.
> 
> --
> Kevin Ballard
> kevin at sb dot org
> http://kevin.sb.org/


-500 is the correct format to be returned.  If you look at the date in your
email headers you will notice the timezone indicator at the end looks like
this "-0500".  You should be able to divide by 100 to remove the extra 0s.

-- 
Mike Bailey
REAL Software, Inc.
http://www.realsoftware.com



<Prev in Thread] Current Thread [Next in Thread>