Page 1 of 1

Daylight Webtag Showing Wrong Value

Posted: Thu 25 Mar 2021 2:38 pm
by stefanbagnato
I am not certain when this started, but the Daylight webtag is showing a value that appears to be exactly 12 hours behind the real value. I have not made any changes to the site recently, nor the tags or their format.
Capture.PNG
Capture1.PNG

Re: Daylight Webtag Showing Wrong Value

Posted: Thu 25 Mar 2021 2:58 pm
by mcrossley
Your time format for daylight and day length is set to 12 hour format which does not make sense, it should be 24 hour format. So 13 hours 11 minutes is displaying as 1:11 (without the pm moniker).

"hh:mm"

Re: Daylight Webtag Showing Wrong Value

Posted: Thu 25 Mar 2021 3:05 pm
by stefanbagnato
Ah good catch. I changed it to hh:mm, which then just changed Daylight to 01:11, still useless. But then I removed the format tag altogether, and now it shows correctly. Guess it was probably an issue all along, but didn't start showing til the days finally got longer. Probably been there for a few weeks, I just didn't notice it.

Re: Daylight Webtag Showing Wrong Value

Posted: Thu 25 Mar 2021 3:29 pm
by mcrossley
Sorry, my mistake, the format should be "HH:mm" - but that is the default without a format string anyway ;)

h = 12 hour format
H = 24 hour format