Hello TBUDL ,

From the help file:

ODATE[="format"] (replies and forward) insert the date of the original
message in the long date format (defined by the system's country
settings) or using the format specified by the format parameter

OTIME[="format"] (replies and forward) insert the time of the
original message in the short time format (defined by the system's
country settings) or using the format specified by the format parameter


While reading through some pages about RegEx at
http://www.silverstones.com/thebat/Regex.html and playing around a bit
with the "Historians" example on
http://www.silverstones.com/thebat/RegexPt5.html I'm quite confused...


Using it on a message which has
    Date: Fri, 31 Oct 2003 00:27:08 +0100
in the headers, ODATE returns
    Friday, October 31, 2003
and OTIME returns
    00:27:08 ( [GMT +0100] from the macro )
Now this I can understand.

    
Using it on another message which has
    Date: Thu, 30 Oct 2003 18:20:34 -0500
in the headers, ODATE returns
    Friday, October 31, 2003
and OTIME returns
    18:20:34 ( [GMT -0500] from the macro )
Now this I don't understand.

As the ODATE/OTIME return-values are placed in the reply, I would
interpret this as: the senders' message was created on Friday
2003-10-31 at 18:20, which would be 18:20 - 00:37 (local time of
arrival at my main-server, located at GMT +0100) = approx 18 hours
ahead of my local time.

GMT referenced date/time is only allowed to have a + or - 12 hour
difference.

It seems ODATE simply uses the OTIME value to calculate the ODATE
value to return, using the local PC-day/date, not taking into account
the GMT offset of the original message.

    
In my opinion this is quite wrong and, for instance, totally f****
up the "Historians" example.

Any opinions / confirmation on this?

FYI: I'm on GMT +0100


-- 
Kind regards,
Peter Ouwehand
[EMAIL PROTECTED]
Ouwehand dot net
- - - - -
Using The Bat! V2.01.7
On Windows 2000 5.0 Build 2195 Service Pack 4
________________________________________________
Current version is 2.01.3 | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to