Closed lukecarbis closed 9 years ago
We'll look into the error.
The root cause of the problem appears to be a geographic position that doesn't correspond to the timezone
Please take a careful look at your lat/long inputs and whether you're passing the correct values. Brisbane is actually at latitude=-27.46794
and longitude=153.02809
and tzid=Australia/Brisbane
. The location you're passing (latitude=37.7873712
and longitude=-122.4082288
) appears to actually be San Francisco, CA, which really should be tzid=America/Los_Angeles
.
Right - that's iOS simulating my location, but using my locale for the timezone. :)
OK, we've deployed the change to fix this issue.
Passing nonsense location/timezone into Hebcal will still give nonsense results, but we won't raise a 500 Internal Server Error.
:+1:
When calling the Jewish Calendar REST API at this URL:
http://www.hebcal.com/hebcal/?v=1&cfg=json&year=now&month=x&c=on&geo=pos&latitude=37.7873712&longitude=-122.4082288&tzid=Australia/Brisbane
I receive this error:
Interestingly, if I change the
month
parameter to6
(the current month), the error goes away. However, if I use any other month (1
-12
orx
), I get the same error page.