time zone not saved if negative
Brought to you by:
kzamir
I am trying to change the time zone to -5 for Eastern Standard Time (USA), but hdate stores -0 instead, and the displayed sunrise/sunset times are wrong.
I think the code in callbacks.c is not checking the field correctly. The on_entry_tz_changed function is checking for values between 0 and 360, and I think it should be checking for -12 to 12 instead. Also, I suspect that the previous two functions have similar problems. Latitude should be -82 to 82, and longitude should be -180 to 180. Am I mistaken about the checking?