[ale] Date passed to webmail

Fletch fletch at phydeaux.org
Wed Apr 11 14:02:23 EDT 2001


>>>>> "Tom" == Tom Younker <twins at atlnet.com> writes:

    Tom> All: When I use Netscape's mail, the message date is normal.
    Tom> When I use my webmail account, the year is not "2001" but
    Tom> "101", a big problem when messages are sorted by date.

        Not knowing all the specifics, I'd guess that the webmail app
is written in Perl (or something that like perl just has a wrapper
around gmtime/localtime) and whomever wrote it doesn't understand that 
it's returning years since 1900, not a two digit year.  This would
explain the 101 (2001 == (1900 + 101)).  It was common pre-y2k to see
code that just used something like `$year = (localtime)[5]' instead of 
the correct `$year = (localtime)[5] % 100' to get a two digit year
value (since it worked fine up until last year).

        But that's just a possible explanation.

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
                      |                                               U
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list