Trixology
WeatherCat => WeatherCat Web Templates => Topic started by: Hugh Whalen on May 18, 2022, 08:55:36 PM
-
I am using the Saratoga templates. When I click on Status I get the following. Any idea on what is going on here?
Hugh
-
It's hard to tell from just an image, but I think it's a mismatch between what WeatherCat uses for date format and what the template is expecting.
In Settings.php, there is the entry:
$SITE['WDdateMDY'] = false; // for weather software date format of month/day/year. =false for day/month/year
If your date looks like day/month/year in WCTtags.php?sce=dump, then =false; is the one to use.
otherwise, set it to =true;
It also assumes that the date delimiter is either a / - or . but the order is MDY or DMY.
I can't tell more without a link to a public URL to your weather website...
Hope this helps...
-
The URL is www.flowers-cove.ca
Thanks,
Hugh
-
Thanks, Hugh.
In your WCTtags.php?sce=view, I spy your Date as da|05/18/22|// Date in the format of month/day/year:|:and that is what is in $WX['da'] which WCT-defs.php puts into the $date variable.
In your Settings.php, you have $SITE['WDdateMDY'] = false; // for weather software date format of month/day/year. =false for day/month/year
which doesn't match the month/day/year format.. change that to $SITE['WDdateMDY'] = true; // for weather software date format of month/day/year. =false for day/month/year and that should fix the issue in wxstatus.php display of the age of the weather data.
-
That worked. Thank you very much! ThU32:-)
Hugh
-
Thank you for keeping us straight on your template, Ken! You (along with several other folks providing external services) have been an asset to the WeatherCat community!
[cheers1]