Page 1 of 1

Update time /date issue

Posted: Thu 16 Mar 2017 7:55 am
by duke
Strangely the date in the update has started displaying minutes instead of the month. It now looks like this: 16/52/17 07:52:55

Updated to the latest release this morning but no change. The tag file is ok which can be seen here.

Website here.

Any suggestions greatly appreciated.

Re: Update time /date issue

Posted: Thu 16 Mar 2017 8:35 am
by water01
Are you using a webtag file for Cumulus MX instead of one foe Cumulus 1 as this type of file has a different formatting parameter?

Re: Update time /date issue

Posted: Thu 16 Mar 2017 5:19 pm
by duke
Hi David, I don't believe that's the issue as all the time / date tags are displaying correct in the tags file linked above.

Re: Update time /date issue

Posted: Thu 16 Mar 2017 5:30 pm
by duke
Ok, just had a look on the server and there is a error log file. Same errors on all pages.

Code: Select all

[17-Sep-2016 02:20:23 Europe/London] PHP Fatal error:  Call to undefined function longdate() in /home/night239/public_html/weather/wxrecords.php on line 70
[17-Sep-2016 13:48:29 Europe/London] PHP Fatal error:  Call to undefined function longdatetm() in /home/night239/public_html/weather/wxthismonth.php on line 70
[17-Sep-2016 18:42:16 Europe/London] PHP Notice:  Undefined offset: 0 in /home/night239/public_html/weather/ajax-dashboard.php on line 908

Re: Update time /date issue

Posted: Thu 16 Mar 2017 6:27 pm
by duke
Further down the log file I found this too, may be related???

Code: Select all

A non well formed numeric value encountered in /home/night239/public_html/weather/readDayfile.php on line 34

Re: Update time /date issue

Posted: Thu 16 Mar 2017 8:53 pm
by Mapantz
Has your PHP version on the server recently changed, duke?

Re: Update time /date issue

Posted: Thu 16 Mar 2017 9:18 pm
by duke
My server shows 5.6 and that's old so I would think that's ok. Really not sure what's going on, I have not altered the Saratoga templates for a couple of years as I've been so busy and they just sit there working quite happily (thanks Ken), I have updated them this morning. MX is also several revisions behind as it just works (thanks Steve).

Re: Update time /date issue

Posted: Thu 16 Mar 2017 9:20 pm
by jdc
FWIW
Looking at 'View Source' of index.php, the date is shown correctly.
Also if ajax-dashboard.php is run alone, the date is OK.
I can't offer a solution I'm afraid - don't know those template. :?

Re: Update time /date issue

Posted: Thu 16 Mar 2017 10:36 pm
by ConligWX
in your settings, what it the format of this line (129 (approx)

Code: Select all

$SITE['timeFormat'] = 'd/m/Y H:i'; 

Re: Update time /date issue

Posted: Fri 17 Mar 2017 7:05 am
by duke

Code: Select all

$SITE['timeFormat'] = 'd/m/Y H:i';

Re: Update time /date issue

Posted: Fri 17 Mar 2017 8:35 am
by sfws
Duke - Check http://www.nightingaleweather.co.uk//re ... altime.txt - surely the error is in whatever generates that.
I think David (water01) was guiding you in right direction - that file is what www.nightingaleweather.co.uk/weather/ajaxCUwx.js uses.

Re: Update time /date issue

Posted: Fri 17 Mar 2017 10:40 am
by water01
I still think this a webtag formatting issue because if you look at the Cumulus MX Announcment

Code: Select all

mm was Month as number from 01 to 12  is now  MM 
and

Code: Select all

nn was  Minute with leading zero  is now mm 
consequently you would get minutes instead of Months when using mm.

Re: Update time /date issue

Posted: Fri 17 Mar 2017 5:26 pm
by duke
David / sfws - thank you for putting the pieces together. Indeed a webtag formatting issue, I had totally forgotten that the realtime.txt is constructed from tags. I was wrapping my brain over the webtag file. I can't believe this had gone unnoticed since I last edited my custom realtime.txt back in Jan 2015 when Steve released MX, thank you.

Code: Select all

<#date format=dd/mm/yy>
is now

Code: Select all

<#date format=dd/MM/yyyy>

Re: Update time /date issue

Posted: Sat 18 Mar 2017 12:26 am
by water01
Taraaaa!! :D