Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

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

Update time /date issue

Discussion of Ken True's web site templates

Moderator: saratogaWX

User avatar
duke
Posts: 845
Joined: Sun Jul 03, 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

Postby duke » Thu Mar 16, 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: 1453
Joined: Sat Aug 13, 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

Postby water01 » Thu Mar 16, 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: 845
Joined: Sun Jul 03, 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

Postby duke » Thu Mar 16, 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: 845
Joined: Sun Jul 03, 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

Postby duke » Thu Mar 16, 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: 845
Joined: Sun Jul 03, 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

Postby duke » Thu Mar 16, 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: 561
Joined: Sat Dec 17, 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

Postby Mapantz » Thu Mar 16, 2017 8:53 pm

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

User avatar
duke
Posts: 845
Joined: Sun Jul 03, 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

Postby duke » Thu Mar 16, 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: 134
Joined: Tue Jun 19, 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

Postby jdc » Thu Mar 16, 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
Toxic17
Posts: 785
Joined: Mon May 19, 2014 10:45 pm
Weather Station: Davis VPro2 Plus
Operating System: Deb 9.4 Stretch
Location: Bangor, NI
Contact:

Re: Update time /date issue

Postby Toxic17 » Thu Mar 16, 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://www.conligwx.org/pws/
https://twitter.com/conligwx
Davis Vantage Pro2+ - CumulusMX v3.0.0 (build 3043) + Saratoga/PWS
Image

User avatar
duke
Posts: 845
Joined: Sun Jul 03, 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

Postby duke » Fri Mar 17, 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: 416
Joined: Fri Jul 27, 2012 11:29 am
Weather Station: Customised mix of Fine Offset
Operating System: having problems with PC
Location: UK

Re: Update time /date issue

Postby sfws » Fri Mar 17, 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: 1453
Joined: Sat Aug 13, 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

Postby water01 » Fri Mar 17, 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: 845
Joined: Sun Jul 03, 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

Postby duke » Fri Mar 17, 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: 1453
Joined: Sat Aug 13, 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

Postby water01 » Sat Mar 18, 2017 12:26 am

Taraaaa!! :D


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 2 guests