Tags with UTC date/time not working

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
User avatar
saratogaWX
Junior Boarder
Junior Boarder
Posts: 36
Joined: Tue Jun 14, 2011 2:39 am
Location: Saratoga, CA, USA
Contact:

Tags with UTC date/time not working

Post by saratogaWX »

Boris,

The docs at http://www.meteobridge.com/wiki/index.php/Templates show
When a capital "U" preceeds a date/time variable name, UTC is used instead of local time ("[Uhh]:[Umm]:[Uss] UTC" is evaluated to a string like "16:03:33 UTC")
and when code like this is used as a template

Code: Select all

date|[YYYY]-[MM]-[DD]|// local date:|:
time|[hh]:[mm]:[ss]|// local time:|:
dateUTC|[UYYYY]-[UMM]-[UDD]|// UTC date:|:
timeUTC|[Uhh]:[Umm]:[Uss]|// UTCtime:|:
the values for time and timeUTC are identical (and are local timezone time). I suspect that the dateUTC would also be the local time's date also.

So, it appear that the 'U' modifier is not being honored in the template processing. I'm running Meteobridge 1.8 (2198) on a TL-MR3020

Best regards,
Ken
Free Weather website PHP templates and scripts at Saratoga-Weather.org
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Tags with UTC date/time not working

Post by admin »

You are right, I can confirm the bug. Will be solved this evening.
villiewe
Senior Boarder
Senior Boarder
Posts: 50
Joined: Sun Aug 25, 2013 4:01 am

Re: Tags with UTC date/time not working

Post by villiewe »

Display of UTC versus CDT:

I have system set to display CDT but when I click on wunderground map for my station, the daily plot displays UTC.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Tags with UTC date/time not working

Post by admin »

Meteobridge does always send UTC timestamped data to WU.
When data WU presents to you is not in you local timezone,
then your profile setings in WU is wrong, or WU does have a problem.
villiewe
Senior Boarder
Senior Boarder
Posts: 50
Joined: Sun Aug 25, 2013 4:01 am

Re: Tags with UTC date/time not working

Post by villiewe »

I checked meteobridge settings and it is definitely time zone "America Chicago"
Where should I email a screen shot that shows CDT settings but plots as UTC ( five hours later)
harvestcoyote
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: Thu Aug 08, 2013 9:44 pm

Re: Tags with UTC date/time not working

Post by harvestcoyote »

It is actually a confirmed issue with WU; they are switching over databases and the Timezone and Station Altitude values are not working at the moment.
Post Reply