Re: Javascript Questionã By: KF5QEO to All on Fri Jan 17 2014 04:15 pmãã > O.k. I'm wanting to do some customizing of my BBS. I can handle parts ofã > it, but my knowledge of Synchronet's mods to javascript isn't the greatest.ã > Most of what I know is what I see in various .js files I find. With thatã > in mind, I'd like to theme my BBS a bit more. So like I want to modifyã > userlist.js to show the user list like a contact log for ham radio. Thatã > being said, I need two things:ã >ã > 1. Date and Time the user last called. (Weird the userlist.js doesn'tã > seem to have any reference to it, but I thought it showed theã > date/timeã > the user logged in.)ã > 2. I need to convert the date/time to Universal time and format it inã > yyyy-monthname-dd hh:mm:ss format.ã >ã > Thinking about it some more, I'll need to know if the connection wasã > telnet, http, or any other type...ããSee
http://synchro.net/docs/jsobjs.html#user.statsããThe user.stats.laston_date (number, date and time of last logon in "seconds ãsine 1/1/1970) is probably what you want. You should able to display it in ãlocal time or UTC using core JavaScript methods.ããAnd the last connection type/protocol (string) is stored in the user.connection ãproperty.ãã digital manããSynchronet "Real Fact" #13:ãSBBSecho was originally written by Allen Christiansen (King Drafus) in 1994.ãNorco, CA WX: 76.8øF, 8.0% humidity, 4 mph W wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã