Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

<#update> tag

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

<#update> tag

Post by freddie »

I have just noticed it is giving American-style dates. From my monthly records page:

Code: Select all

Page updated 04/27/2020 19:15:00
Has this changed recently, or has it always been like this?
Freddie
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: <#update> tag

Post by water01 »

Strange my PHP version is returning the correct results.

Code: Select all

$update                     = "<#update>";  //  date and time of the last web site update (example format: 01 Jan at 18:30:55)
// =====================================================================================================================
$updated                    = "<#update format="'at' hh:mm:ss 'on' MMMM dd">";  //  date and time of the last web site update (example format: at 18:30:55 on 01 Jan)
$updateU                    = strtotime(str_replace('/','-',"<#update>"));  //  (Unix timestamp format)
Returns

Code: Select all

$update                     = "27/04/2020 20:15:00";  //  date and time of the last web site update (example format: 01 Jan at 18:30:55)
// =====================================================================================================================
$updated                    = "at 08:15:00 on April 27";  //  date and time of the last web site update (example format: at 18:30:55 on 01 Jan)
$updateU                    = strtotime(str_replace('/','-',"27/04/2020 20:15:00"));  //  (Unix timestamp format)
David
Image
Mapantz
Posts: 1992
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: <#update> tag

Post by Mapantz »

All OK here too..

$update = "<#update>";
$update = "27/04/2020 20:45:00";

Does it abide by PC settings?
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: <#update> tag

Post by freddie »

Mapantz wrote: Mon 27 Apr 2020 7:46 pm All OK here too..

$update = "<#update>";
$update = "27/04/2020 20:45:00";

Does it abide by PC settings?
Very strange. It looks as if it must be something local.
Freddie
Image
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: <#update> tag

Post by freddie »

freddie wrote: Mon 27 Apr 2020 7:54 pmIt looks as if it must be something local.
Aha! I've changed (in the past month) to using Linux containers* rather than VMs. Just checked the container locale and it is different to the original VM. I will change the container locale setting.

* I highly recommend this approach. Very light on resources compared to a VM, and much faster :-)
Freddie
Image
Post Reply