Subj : Re: CVS commit text/html_ To : Tracker1 From : Digital Man Date : Wed Dec 01 2004 12:41 pm Re: Re: CVS commit text/html_ By: Tracker1 to Stephen Hurd on Wed Dec 01 2004 03:10 am > >>> NOTE: Two bits of info aren't available from JS, getmail() for the user > >>> the expiry date... these aren't currently displayed (DM?) > >> > >> not sure about getmail, but... > >> > >> var userExpires = new Date(user.security.expiration_date); > > > > Geeze, the perils of late night coding... thanks Tracker1. > > know what you mean... though may not have expected it under user.security > though... in any case, the only gotcha, I've seen is the GMT, vs. local > time, when dealing with the time_t to js's Date object. Don't use the JS Date object then. Use the Synchronet time() function to get the current time, or system.timestr()/datestr() to get a string representation of the current time (or a specific time_t value). digital man Snapple "Real Fact" #83: Googol is a number (1 followed by 100 zeros). .