It's all about how the machines store time. Windows uses our US format (when
selected, of course) and returns its TS in that format. Linux is using an
universal time format and uses GMT date - use dateFormat to deal with it =D

-----Original Message-----
From: P.V.Anthony [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 28, 2002 12:48
To: CF-Linux
Subject: How to get LSParseDateTime to work on Cobalt?


Please help to point me in the right direction or let me exactly how to make
this function, LSParseDateTime, to work correctly on the Cobalt.

This is the code run on a Windows and Cobalt Linux.

    <cfset oldLocale=SetLocale("English (UK)") >

    <cfoutput>
        #getlocale()#<br>
        #LSParseDateTime("1/12/2002")# (day/month/year)<br>
    </cfoutput>

On the windows I get the right result

    English (UK)
    {ts '2002-12-01 00:00:00'}

On the cobalt linux I get the wrong result.

    English (UK)
    {ts '2002-01-12 00:00:00'}

Is there something I have to do on the server end? If so please let me know
how.

P.V.Anthony





______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-linux%40houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_linux or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to