Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erroneous time returned #19

Open
rayshan opened this issue Dec 9, 2015 · 2 comments
Open

Erroneous time returned #19

rayshan opened this issue Dec 9, 2015 · 2 comments

Comments

@rayshan
Copy link

rayshan commented Dec 9, 2015

Hello.

Give this METAR:

METAR ZGSZ 210500Z 06003MPS 020V100 9999 SCT033 28/19 Q1016 NOSIG

Obtained from here with a local datetime of Nov 21 2015 1PM, metar.js returns time of Sun Dec 20 2015 21:00:30 GMT-0800 (PST). Is there something special we have to do when dealing with METAR datetime?

@9662
Copy link

9662 commented May 4, 2016

It appears to be the correct timestamp, no? Apart from the :30 seconds coming out of nowhere.
Note: Aviation reports always use UTC, and 2015-12-20T21:00-0800 is consistent with the METAR timestamp of 210500Z (allowing for the month+year ambiguity).

@rayshan
Copy link
Author

rayshan commented May 4, 2016

@9662 thanks, I didn't know METAR is always in UTC. I assume it's just because Weather Underground is producing METAR with wrong dates? I'd double check but seems like Weather Underground's METAR display is broken right now. Will come back to this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants