The immediate and relevant user of localtime is the Perl script. It's not the web server on the other side of the CGI interface. It's not the web client on the other side of the HTTP connection. etc. localtime deals with the time zone specified by the script, which defaults to the time zone of the machine on which the script runs.
It may be possible to fetch the host's time zone using JavaScript. It's definitely possible by embedding an ActiveX object (if the web browser supports and allows it). And of course, you could ask for it (like Perl Monks does). If this info is sent to the Perl script, then it could ask localtime to work in the web browser's time zone. But that's not an automatic process.
In reply to Re: how does localtime() get the time from the user's machine?
by ikegami
in thread how does localtime() get the time from the user's machine?
by cmshowers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |