jakiestfu / himawari.js

Download real-time images of Earth from the Himawari-8 satellite
http://jakiestfu.github.io/himawari.js/demo/
MIT License
1.81k stars 103 forks source link

Date argument not being correctly handled #13

Closed jcalado closed 8 years ago

jcalado commented 8 years ago

Date is always being resolved to have a 00:00:00 time.

sat himawari --skipempty --date 2016-02-12 8:30:00 +0000 --debug
Creating undefined in /Users/joel/sat ...
[Himawari] Resolving date...
[Himawari] Date resolved Fri Feb 12 2016 00:00:00 GMT+0000 (WET)
jakiestfu commented 8 years ago

What if you wrap the date in quotes?

jakiestfu commented 8 years ago

That's the problem, you need to wrap your date in quotes.

bin/cli.js --skipempty --date "2016-02-12 8:30:00" --debug
Creating undefined in /Users/jkelley/Repos/himawari.js ...
[Himawari] Resolving date...
[Himawari] Date resolved Fri Feb 12 2016 08:30:00 GMT-0800 (PST)