Welcome to the new home of the Cumulus Support forum.

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See the Wiki for download

Update time /date issue

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Update time /date issue

Post by duke » Thu 16 Mar 2017 7:55 am

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.
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

water01
Posts: 1477
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Update time /date issue

Post by water01 » Thu 16 Mar 2017 8:35 am

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?

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Thu 16 Mar 2017 5:19 pm

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

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Thu 16 Mar 2017 5:30 pm

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

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Thu 16 Mar 2017 6:27 pm

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
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

User avatar
Mapantz
Posts: 521
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 10 x64 - A beast.
Location: Wareham, Dorset - UK
Contact:

Re: Update time /date issue

Post by Mapantz » Thu 16 Mar 2017 8:53 pm

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

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Thu 16 Mar 2017 9:18 pm

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).
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

User avatar
jdc
Posts: 135
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10 : Win XP
Location: Berwick-upon-Tweed, England.
Contact:

Re: Update time /date issue

Post by jdc » Thu 16 Mar 2017 9:20 pm

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: 728
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis Vantage Pro2 Plus
Operating System: Debian 9.5 Stretch
Location: Bangor, NI
Contact:

Re: Update time /date issue

Post by ConligWX » Thu 16 Mar 2017 10:36 pm

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
https://twitter.com/conligwx
Davis Vantage Pro2 Plus - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS Templates

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Fri 17 Mar 2017 7:05 am

Code: Select all

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

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

sfws
Posts: 461
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Customised mix of Fine Offset
Operating System: Tempermental Win. 10 PC
Location: UK

Re: Update time /date issue

Post by sfws » Fri 17 Mar 2017 8:35 am

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: 1477
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Update time /date issue

Post by water01 » Fri 17 Mar 2017 10:40 am

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.

User avatar
duke
Posts: 840
Joined: Sun 03 Jul 2011 6:23 pm
Weather Station: Davis VP2 Plus - 24hr FARS
Operating System: Windows 10 - 64 bit
Location: Eastleigh, Hampshire, UK
Contact:

Re: Update time /date issue

Post by duke » Fri 17 Mar 2017 5:26 pm

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>
Duke

Nightingale Weather
Eastleigh, Hampshire, UK
------------------------------------------------------
Validate your pages - often!

water01
Posts: 1477
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Update time /date issue

Post by water01 » Sat 18 Mar 2017 12:26 am

Taraaaa!! :D

Post Reply