home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
UTC Dates Out -> Local Time In?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ChubbyArse" data-source="post: 1115073" data-attributes="member: 117700"><p>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.</p><p></p><p>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:</p><p></p><p><a href="http://192.168.0.3:4322/MPExtended/TVAccessService/json/AddScheduleDetailed?channelid=92&title=Grimm" target="_blank">http://192.168.0.3:4322/MPExtended/TVAccessService/json/AddScheduleDetailed?channelid=92&title=Grimm</a> [2]&starttime=2014-12-15T21:10:00&endtime=2014-12-15T22:05:00&scheduletype=0&preRecordInterval=5&postRecordInterval=10</p><p></p><p>(Hmmmm..... I have just noticed that I should probably URLEncode the string!)</p><p></p><p>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?</p><p></p><p>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....</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="ChubbyArse, post: 1115073, member: 117700"] 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: [url]http://192.168.0.3:4322/MPExtended/TVAccessService/json/AddScheduleDetailed?channelid=92&title=Grimm[/url] [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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
MPExtended
UTC Dates Out -> Local Time In?
Contact us
RSS
Top
Bottom