- December 28, 2011
- 40
- 1
Hi all, I'm using MPExtended to drive a plugin to link MediaBrowser and Media Portal. I'm in a GMT timezone, so everything is good - however there is a user in Germany (UTC+1) that is having trouble creating a schedule.
At the point I create the REST call - I read the data out of MPExtended for the program to ensure that I get the right time for the schedule and create something like this:
http://192.168.0.3:4322/MPExtended/TVAccessService/json/AddScheduleDetailed?channelid=92&title=Grimm [2]&starttime=2014-12-15T21:10:00&endtime=2014-12-15T22:05:00&scheduletype=0&preRecordInterval=5&postRecordInterval=10
(Hmmmm..... I have just noticed that I should probably URLEncode the string!)
The problem is that in local time the program details are Monday, 15. December at 22.10 - 23.05 pm. I assumed that as UTC dates come out of MPExtended - I would send back UTC dates, but the experience of this user suggested otherwise?
So, I wanted to confirm that although MPExtended returns UTC data, you need to use local times when passing back to MPExtended? So a simple .ToLocalTime() should do it....
Thanks
At the point I create the REST call - I read the data out of MPExtended for the program to ensure that I get the right time for the schedule and create something like this:
http://192.168.0.3:4322/MPExtended/TVAccessService/json/AddScheduleDetailed?channelid=92&title=Grimm [2]&starttime=2014-12-15T21:10:00&endtime=2014-12-15T22:05:00&scheduletype=0&preRecordInterval=5&postRecordInterval=10
(Hmmmm..... I have just noticed that I should probably URLEncode the string!)
The problem is that in local time the program details are Monday, 15. December at 22.10 - 23.05 pm. I assumed that as UTC dates come out of MPExtended - I would send back UTC dates, but the experience of this user suggested otherwise?
So, I wanted to confirm that although MPExtended returns UTC data, you need to use local times when passing back to MPExtended? So a simple .ToLocalTime() should do it....
Thanks