Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Update time /date issue

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
duke

Update time /date issue

Post 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.
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Update time /date issue

Post 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?
David
Image
duke

Re: Update time /date issue

Post 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.
duke

Re: Update time /date issue

Post 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
duke

Re: Update time /date issue

Post 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
Mapantz
Posts: 1777
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Update time /date issue

Post by Mapantz »

Has your PHP version on the server recently changed, duke?
Image
duke

Re: Update time /date issue

Post 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).
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Update time /date issue

Post 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. :?
User avatar
ConligWX
Posts: 1571
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Update time /date issue

Post by ConligWX »

in your settings, what it the format of this line (129 (approx)

Code: Select all

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

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
duke

Re: Update time /date issue

Post by duke »

Code: Select all

$SITE['timeFormat'] = 'd/m/Y H:i';
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Update time /date issue

Post 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.
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Update time /date issue

Post 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.
David
Image
duke

Re: Update time /date issue

Post 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>
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Update time /date issue

Post by water01 »

Taraaaa!! :D
David
Image
Post Reply