Funny due dates

15 views
Skip to first unread message

sandfly

unread,
Oct 28, 2006, 7:25:59 PM10/28/06
to Remember The Milk API
Hi,

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

Omar Kilani

unread,
Oct 29, 2006, 5:48:42 AM10/29/06
to remembert...@googlegroups.com
Hi 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

sandfly

unread,
Oct 30, 2006, 5:27:06 PM10/30/06
to Remember The Milk API
Omar Kilani wrote:
> > 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?
>
> 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

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

as

unread,
Mar 22, 2020, 11:11:46 PM3/22/20
to Remember The Milk API
Hi,

As far as I can tell.... this is still broken? 

I'm based in Europe/London timezone and it is winter, i.e. there is no daylight saving time.

I enter a date in the web app, and it converts to a UTC in the API that is one hour earlier.  Why would this be correct, please?

Thanks,

A
Reply all
Reply to author
Forward
0 new messages