I'm sure you don't want to do this for your current project, but what the hell I'll just mention it anyway.
On the server side you could have a database that figures out the location of the browser according to the IP number it sends you. Match the location against a table of times/dates around the world and you might be right some of the time. --- On Tue, 1/19/10, Tim Selander <[email protected]> wrote: > From: Tim Selander <[email protected]> > Subject: Re: Getting user's time from web revlet? > To: "How to use Revolution" <[email protected]> > Date: Tuesday, January 19, 2010, 8:29 AM > Thanks for clearing up the > .irev/revlet confusion in my head. > > I've read through the thread a couple times... and it seems > you > CANNOT get the user/browser's date and time through > RevServer > scripts. Correct? > > Anyone have a javascript snippet they like to use to get > the > user's date and time? thanks. > > Tim Selander > Tokyo, Japan > > Andre Garzia wrote: > > Tim, > > > > .irev files are not revlets. revlets are the plugin > based files to be run in > > a browser thru the plugin, they have the .revlet > sufix. irev files are text > > file scripts to be run by the RevServer engine. This > is just so that you > > don't mix them two when you search the archives or > documentation, for it > > would yield bad search results > > > > As for getting the clients time using RevServer files > check out the variable > > $_SERVER["Date"], it will contain a timestamp from the > browser perspective. > > Hope this helps. > > > > Cheers > > andre > > > > 2010/1/18 Tim Selander <[email protected]> > > > >> Hi, > >> > >> I've found some ways using javascript, but does > anyone know if > >> on-rev revlets (.irev files) have a way of getting > the user's > >> date and time from their browser/PC? > >> > >> Thanks, > >> > >> Tim Selander > >> Tokyo, Japan > >> _______________________________________________ > >> use-revolution mailing list > >> [email protected] > >> Please visit this url to subscribe, unsubscribe > and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-revolution > >> > > > > > > > _______________________________________________ > use-revolution mailing list > [email protected] > Please visit this url to subscribe, unsubscribe and manage > your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
