Jump to content

Recommended Posts

Blue278
Posted

I was wondering if there is an option to reflect the TV schedule dates depending on where you live. Kodi correctly syncs my TV show air dates. I tried changing the time zone in Docker on my UGREEN DXP4800 Plus. If I change to the Australian time zone UTC +11, Sunday changes to Saturday. If I change the timezone between UTC -1 to -11, the dates don't change. I'm a bit confused.

 Kodi:Technically, this is the correct date for my EU region.

 image.png.ba135a5f487f8a736de4a6e08822f13b.png  

 

Emby; Wong Date for my region.

Timezone:UTC -1 to -11 no change to the dates

image.jpeg.2000385ede53e056f1c06d0fbaa25ceb.jpeg\

Thanks

 

Posted

HI, have you checked the timezone settings of the client device as well (browser?) ?

Blue278
Posted
58 minutes ago, Luke said:

HI, have you checked the timezone settings of the client device as well (browser?) ?

Hi,

Yes

Posted
Just now, Blue278 said:

Hi,

Yes

And what did you find?

Blue278
Posted
6 minutes ago, Luke said:

And what did you find?

UGREEN DXP4800+ 

image.thumb.png.c3ec570fe83abdc2fcfbf513dde34927.png

Emby

image.thumb.png.1e3b0f36cb4e095ccb21f27705a7ac4b.png

Posted

And how about on the client machine?

Blue278
Posted
4 hours ago, Luke said:

And how about on the client machine?

UGREEN DXP4800 Plus, Mac mini & Emby all showing the correct time for my region.

Posted

Are you still having an issue with this?

Blue278
Posted
9 hours ago, Luke said:

Are you still having an issue with this?

Yes.

  • 1 month later...
Posted

@LukeNo, I haven’t. So the issues have been going on for years. Will it be fixed soon?

 

Thanks

Posted
20 minutes ago, Blue278 said:

@LukeNo, I haven’t. So the issues have been going on for years. Will it be fixed soon?

 

Thanks

I would take a look at them. I linked to them because they both found solutions.

Posted

I’ll take a look.Thanks 

  • Thanks 1
Posted
17 hours ago, Luke said:

I would take a look at them. I linked to them because they both found solutions.

I have reached out for help. I'm not an advanced user of Docker, it’s very complicated.

  • Thanks 1
  • 8 months later...
Blueskies278
Posted (edited)

@LukeI'm still having issues where the incorrect dates are displayed in upcoming.


Title: Upcoming view shows episodes one day early - timezone rendering bug

Emby Version: 4.10.0.8 beta (also tested on latest stable - same issue)

Server OS: Docker container on Ugreen DXP4800 Plus (Debian)

Server Timezone: Europe/London (UTC+1)


Issue:

The Upcoming view displays future episodes one day early. This has been an ongoing issue since at least May 2025 (see my previous thread: https://emby.media/community/topic/139138-upcoming-tv-schedule-dates/)

Proof this is a rendering bug, not a data bug:

I have confirmed the following for Marshals S1E6 "Out of the Shadows (2)":

  1. TMDB cache file on server contains: air_date: 2026-04-06T00:00:00.0000000Z ✅
  2. Emby Upcoming view displays: Sunday 5 Apr ❌
  3. Correct date should be: Monday 6 Apr ✅
  4. Kodi reads identical data and displays Monday 6 Apr correctly ✅
  5. Container time confirmed correct: Mon Apr 6 00:09:59 BST 2026 ✅
  6. /etc/localtime correctly set to Europe/London ✅
  7. MetadataCountryCode set to GB ✅
  8. UICulture set to en-GB ✅

Root cause:

Emby's Upcoming view rendering code is subtracting the UTC+1 offset when grouping episodes by day. Since air dates are stored as midnight UTC (T00:00:00.0000000Z), subtracting 1 hour pushes them back to 23:00 the previous day, causing them to appear under the wrong date group.

Kodi handles this correctly by applying the show's network timezone when converting UTC air times to local dates. Emby needs to do the same.

Steps to reproduce:

  1. Run Emby server in Docker with TZ=Europe/London
  2. Add any US network show to your library
  3. View the Upcoming section on the home screen
  4. Episodes will appear one day early compared to the actual air date

Expected: Marshals S1E6 shows under Monday 6 Apr

Actual: Marshals S1E6 shows under Sunday 5 Apr / Yesterday


embyserver.txt

Edited by Blueskies278

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...