Time offset on timestamp
Posted: Tue Mar 17, 2009 12:36 am
I am trying to add a time offset (+1hr) to this script; can anybody help. The server that hosts this page is in another time zone.
<?php
$filename = 'weather1.txt';
if (file_exists($filename)) {
echo "Last Updated: " . date ("F d Y H:i:s.", filemtime($filename));
}
?>
I am takeing a time stamp off the file being uploaded so people looking at the web page can see if the file has been updated as it should be via FTP.
<?php
$filename = 'weather1.txt';
if (file_exists($filename)) {
echo "Last Updated: " . date ("F d Y H:i:s.", filemtime($filename));
}
?>
I am takeing a time stamp off the file being uploaded so people looking at the web page can see if the file has been updated as it should be via FTP.