Fix which time we use for dow
.
This commit is contained in:
parent
9cfed171b6
commit
7a7199a966
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def geocode(latitude, longitude):
|
|||
# wxman: ???
|
||||
'obs_qualifier_code': observation['qualifier'],
|
||||
'ptend_code': observation['pressure_tend'],
|
||||
'dow': datetime.datetime.utcfromtimestamp(observation['expire_time_gmt']).strftime('%A'),
|
||||
'dow': datetime.datetime.utcfromtimestamp(observation['valid_time_gmt']).strftime('%A'),
|
||||
'wdir_cardinal': observation['wdir_cardinal'], # sometimes this is "CALM", don't know if that's okay
|
||||
'uv_desc': observation['uv_desc'],
|
||||
# I'm just guessing at how the three phrases map.
|
||||
|
|
Reference in a new issue