Jump to content


Photo

Trakt: Wrong time

trakt timezone

  • Please log in to reply
15 replies to this topic

#1 psxlover OFFLINE  

psxlover

    Advanced Member

  • Members
  • 136 posts
  • Local time: 06:17 PM
  • LocationAthens, Greece

Posted 18 February 2017 - 06:01 PM

I'm using the trakt plugin, and I just noticed that it is reporting the wrong time to the server when marking a show as watched. I just marked a couple of episodes and instead of 23:30 which was the time, trakt shows that I watched them at 01:30 the next day.

My guess is this is a timezone issue. I live in UTC+2, and the trakt setting is set to that hour. The plug-in is probably using the local time while trakt expects a UTC time, and then trakt adds another 2 hours to match the timezone.



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 18 February 2017 - 06:08 PM

I think that it is sending UTC because I don't see anything in the code converting to local - in other words, our dates are always UTC to begin with. Can you try to prove this perhaps by sniffing the transmission?



#3 psxlover OFFLINE  

psxlover

    Advanced Member

  • Members
  • 136 posts
  • Local time: 06:17 PM
  • LocationAthens, Greece

Posted 19 February 2017 - 01:38 PM

No idea how since the communication is encrypted.

When you say all dates are UTC, do you mean the dates associated with trakt plugin, or all the dates in empy? Cause at least the logs are using local times.



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 19 February 2017 - 01:40 PM

logs are local but all dates in the database are utc, and all the dates that the plugin are working with are utc.



#5 elsker OFFLINE  

elsker

    Advanced Member

  • Members
  • 30 posts
  • Local time: 03:17 AM

Posted 13 March 2017 - 07:18 PM

I am noticing this same bug. When I watch a show or movie it reports the correct time to trakt but if I manually mark it watched in emby it reports it to trakt as 11 hours in the future. My timezone is UTC+10 but we're in DST so it would be UTC+11. I suspect this is an emby issue not an issue with the plugin though as I am noticing that the emby plugin for kodi is also doing the same thing. Could it be that the emby server is recording the time wrong when we mark it watched manually?



#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 13 March 2017 - 10:33 PM

@MrWebsmith have you seen this?



#7 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:17 AM
  • LocationPhiladelphia, PA, USA

Posted 15 March 2017 - 08:00 AM

havent noticed yet... ill try to confirm either way and report back here



#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 15 March 2017 - 01:40 PM

Thanks @MrWebsmith



#9 BAS OFFLINE  

BAS

    Advanced Member

  • Alpha Testers
  • 547 posts
  • Local time: 11:17 AM
  • LocationOhio

Posted 15 March 2017 - 02:27 PM

@MrWebsmith have you seen this?

 

 

I just manually marked a movie watched at 2:20 PM EST in Emby on trakt it reports me as watching it at 10:20 AM EST. I have verified on trakts website that my time zone is set correctly for my profile via the settings area. 


Edited by BAS, 15 March 2017 - 02:30 PM.


#10 BAS OFFLINE  

BAS

    Advanced Member

  • Alpha Testers
  • 547 posts
  • Local time: 11:17 AM
  • LocationOhio

Posted 15 March 2017 - 02:36 PM

I also just confirmed, that when I actually hit the play button trakt reports the time correctly. So it only seems to be when you mark it manually watched in Emby that there is some time discrepancy problem.


Edited by BAS, 15 March 2017 - 02:36 PM.


#11 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:17 AM
  • LocationPhiladelphia, PA, USA

Posted 20 March 2017 - 08:19 AM

yes.. as an fyi/check in... i have confirmed what BAS is saying on my setup.. the reported time is off when the MANUAL MARK WATCHED gets reported to trakt.tv ...   when you are actually watching via the play function, all is ok as reported.. its only the "checkmark" way that seems to do this.



#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 20 March 2017 - 01:06 PM

Thanks for the info.



#13 MSattler OFFLINE  

MSattler

    Advanced Member

  • Alpha Testers
  • 1449 posts
  • Local time: 11:17 AM

Posted 09 June 2017 - 11:06 AM

This seems to be the newest Trakt post.   Is there an active dev on this?  Is this on github?



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 09 June 2017 - 12:27 PM

https://github.com/MediaBrowser/trakt



#15 JoshuaAJones OFFLINE  

JoshuaAJones

    Advanced Member

  • Members
  • 129 posts
  • Local time: 11:17 AM

Posted 23 July 2017 - 01:16 AM

I'm still getting this problem, as well.
Only when manually clicking watched does the Trakt time show the incorrect time.
It reports the UTC time to Trakt, not the Emby App time (which is still off by an hour due to DST).

#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 157196 posts
  • Local time: 11:17 AM

Posted 05 December 2017 - 11:27 AM

Our Trakt plugin has been updated to 3.1.2. Due to Trakt API changes, you will need to install the update, and then re-authenticate using the trakt plugin configuration screen.

 

In addition, there are improvements to the Trakt syncing process. Please let us know if this helps. Thanks !







Also tagged with one or more of these keywords: trakt, timezone

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users