That has everything to do with it !Any ideas, I have changed the time zone to Australia, would that have anything to do with it??
WMO METAR, TAF, SYNOPS etc. are alway Zulu time (UTC) - how else could you compare ?
Moderator: daj
That has everything to do with it !Any ideas, I have changed the time zone to Australia, would that have anything to do with it??
At first it was working fine, But i suppose after a few hours it went up the sh**....gluepack wrote:Well, the source site could have done a conversion I suppose but (viz. my update to my last post), looking at the code for the source site (ogimet), there is no parameter for timezone so you are stuck with specifying UTC.
Instead of changing the offset that effects the source grab, i created another offset to be only used on headinggluepack wrote:Well, the source site could have done a conversion I suppose but (viz. my update to my last post), looking at the code for the source site (ogimet), there is no parameter for timezone so you are stuck with specifying UTC.
Code: Select all
<?php
date_default_timezone_set('Australia/Adelaide');
$years = date("Y");
$months = date("m");
$monthnames = date("F");
$days = date("d");
$daynumbers = date("jS");
$hours = date("H");
?>
Code: Select all
<?php echo $days."/".$months."/".$years; ?> at <?php echo $hours ?>
That's perfect, thanks for that..gluepack wrote:And the date changes too
in my settings and it shows UTC time plus Komoka, ON Canada as alternate but at URC plus 5 hours. Other time settings I've tried are all at UTC plus rather than UTC minus.$where = 'Europe/London'; // Long timezone name e.g. 'Europe/Sofia' or 'UTC' if no alternate
$where_alt = 1; // 0 = use timezone name, 1 = use alternate name
$where_utc = 0; // 0 = use as well as UTC, 1 = use in place of UTC in display
$where_alternate = 'Komoka, ON Canada'; // Any text or null if using timezone name
// To open location links into another tab/window
// $newtab = 'target="_self"'; // opens link in same tab/window
$newtab = 'target="_blank"'; // opens link in a new tab/window
/////////////////////////////////////////////////////////////////////////////
//END SETTINGS///////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Setup UTC date/time for heading and add/replace location date/time for specified alternate time zone
$utc_date = $month."/".$day."/".$year." at ".$hour.":00 UTC";
$where_date = null;
if ($where !== 'UTC')
{
$where_date = $month."/".$day."/".$year." ".$hour.":00";
$new_date = DateTime::createFromFormat( 'm/d/Y G:i', $where_date, new DateTimeZone('America/Toronto') );
There is actual 2 switches as such...gluepack wrote:btw, your site needs a parameter to switch the damn crickets off, I keep thinking there is one in the house