I don't really understand the due date timings. All of my tasks are
due 1 hour before the actual due date.
For examply, my sister's birthday shows up on the website as 18th
October, but comes through the API as "2006-10-17T23:00:00Z" - i.e.
17th at 23:00. Basically, one hour before the day begins.
Is this a timezone thing?
Thanks,
Graeme
The dates and times returned by the API are in UTC as described here:
http://www.rememberthemilk.com/services/api/dates.rtm
So, for example, in the Europe/London timezone, this would be:
2006-10-18T00:00:00+01:00
Your application will need to handle converting dates returned by the
API from UTC to the appropriate timezone.
> Thanks,
> Graeme
Regards,
Omar
Thanks Omar. But it's not that simple.
British Summer Time is over for another year, but most of the due dates
are still adjusted by 1 hour. In fact, it looks like all of the Summer
due dates are adjusted, but not the winter ones.
As an experiment, I set my profile timezone to America/Anchorage, with
a timezone of GMT-09:00. The due dates viewed through the front end
didn't change. So the RTM website doesn't seem to be applying the
chosen timezone.
I tried entering a task using the same profile setting. I also set the
due time: "Due: Wed 1 Nov 06 at 1:00PM". In this case, the API returns
"2006-11-01T13:00:00Z". In other words, it treated my entry as
originating from a GMT locale.
>From my testing, I belive that the only timezone related processing is
the application of a daylight saving time adjustment. So if I enter a
summer task, it subtracts 1 hour from the due time.
Basically, to get from RTM-dates to local datetimes, I need to assume
the datetime represents a local winter-time datetime, and apply any DST
adjustment.
The problem with this is that I don't know what locality was used to
make the DST adjustment. Can you help me out?
Thanks again,
Graeme