"Greg Findon" <gr...@ou...> writes:
> is there a way of getting the script to return the local time from
> the weather station rather than in UTC format?
Not without changing the code a little. Look in output/pw_text.php at
around line 679 for this line:
$gmtime = gmdate('H:i', $time);
If you use data('H:o', $time) instead, then you'll get the local date.
You'll also have to update all the translations because they have
'UTC' coded in...
Replacing UTC with the code for you timezone will probably be OK for
most languages, but it would be nice, if each translation had a
translated version of 'local time' that could be used here.
--
Martin Geisler My GnuPG Key: 0xF7F6B57B
See http://gimpster.com/ and http://phpweather.net/ for:
PHP Weather => Shows the current weather on your webpage and
PHP Shell => A telnet-connection (almost :-) in a PHP page.
|