Jump to content

Upcoming tab showing wrong dates


kjp4756

Recommended Posts

kjp4756

Emby Server 3.0.5781.4

FreeNAS 9.3 emby is installed in a freebsd 9.3 jail.

Mono 4.0.3

 

All of my shows in the upcoming tab are showing as airing 1 day earlier than they actually do.

 

I'll use "This simpsons" as an example.  On the upcoming tab "The Simpsons" shows as airing Sat. December 5th.  This is wrong.  It should be the 6th.

 

SwaggerUI tells me this which shows december 6th as it should be:

 

 

{
  "Items": [
    {
      "Name": "Paths of Glory",
      "ServerId": "f5e8f089294c43fe9f95aaad1e8edc3d",
      "Id": "c0d37125cebb3f9142d565e8efb895c1",
      "PremiereDate": "2015-12-06T00:00:00.0000000Z",
      "PlayAccess": "Full",
      "ProductionYear": 2015,
      "IsPlaceHolder": false,
      "IndexNumber": 8,
      "ParentIndexNumber": 27,
      "IsHD": false,
      "IsFolder": false,
      "Type": "Episode",
      "ParentLogoItemId": "c45026582eb4ed896eee829bd03dcd26",
      "ParentBackdropItemId": "c45026582eb4ed896eee829bd03dcd26",
      "ParentBackdropImageTags": [
        "20ee675fcb181d2721395e42e72d9059",
        "8b615e835aebb97365712e52da15549e"

post-24158-0-71547900-1449352631_thumb.png

Link to comment
Share on other sites

Happy2Play

Some thing specific to your setup.  Have 2 servers that show properly.  Maybe something with non Windows builds.

 

566365927d0fc_upcoming.jpg

Edited by Happy2Play
Link to comment
Share on other sites

kjp4756

I may have found the problem.  Looking in the init script for emby-server the TZ shell variable is being set to UTC.  That means the time zone for emby is being set to GMT.  I'm not sure why the port maintainer would do that.  I changed TZ to my time zone and nothing has changed yet.  Maybe it takes some time for it to update.

 

I'll give it some time and see what happens.

 

Thanks.

Link to comment
Share on other sites

kjp4756

Interesting.  Seems to be a similar issue.  In that thread they talk about UTC+ time zones causing the issue.  My time zone is UTC-6.  I also think this is why the freebsd port maintainer for emby forces the time zone to plain UTC.

 

It seems what's happening is emby/mono is completely ignoring the TZ variable being set.  Local time is being applied to the data in the emby database.

 

Above I posted a snippet of the upcoming shows from swagger.

 

"PremiereDate": "2015-12-06T00:00:00.0000000Z"

 

Apply my timezone UTC-6 to that PremiereDate and you have december 5.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...