Login or register
TVRage.Com Forums => Bug Reports & Support => API Services and Timezone

Level 1
Posts: 1
Since: 14/May/12
Message Posted On Saturday, June 2nd 2012 at 7:38 pm
I have been looking around and just can not seem to find this information anywhere. I am utilizing the api schedule feeds (specifically the quickschedule), but I am at a loss as to the timezone they are being listed as.

It looks as if the US shows are listed in EST but what about the GB and others? Is this listed somewhere?

Level 1
Posts: 1
Since: 24/Jun/12
Message Posted On Tuesday, July 24th 2012 at 11:24 am
Hello everyone!

I would also like to know that.

Thanks a lot!

Level 1
Posts: 1
Since: 18/Nov/13
Message Posted On Monday, November 18th 2013 at 11:58 am
Hi, I was having nearly the same issue myself, and this was only place on net I found it mentioned... so I figured it out myself here is the info:

It seems quickschedule gets timezone from IP location.

Most of my users are in the US, and when I did quickschedule at home it would give proper days, but then when I did it on my server in europe at night it would jump a day ahead since europe was ahead by 6 hours.

I found by some testing myself that if you add an HTTP Date header you can make it go by the timezone from that date.

So, I was coding in python, to make my server in france get quickschedule for US Eastern time, i simply added this to my request:
headers={'Date': (datetime.datetime.now() - datetime.timedelta(minutes=6*60)).strftime('%a, %d %b %Y %H:%M:%S GMT')}

that takes the current time on box and subtracts 6 hours from it, then formats it in the standard HTTP Date header format.