Manual way to adjust clock in PMP?

I’m just curious if there’s a way (SSH, hidden setting for time zone/region) to adjust the clock.

I’m asking because I use the embedded build on an Asus Chromebox and do not have access to a standard BIOS. My PMP clock is exactly 6 hours off (I live in USA/CST which is -6 GMT).

Thanks!

I used these instructions: http://forums.plex.tv/discussion/comment/1183286#Comment_1183286

EDIT: This fix no longer works on Plex Media Player 1.1.3 or higher. If anyone knows how to fix it on those versions, please let me know!

Thanks, gbooker02! Finally got around to doing this and it works great! In case anyone out there is curious, this is how you fix it (hopefully someday they will implement a setting to pick your timezone!)

Connect through SSH (Used Putty) and connected to “PlexMediaPlayer”.
the username is root and password is plex

Once at a prompt, type this to create an autostart.sh file:

nano /storage/.config/autostart.sh##

add this line:

##ln -sf /usr/share/zoneinfo/America/Chicago /var/run/localtime##

exit (ctrl+x) and hit Y to save

… then type:

##chmod +x /storage/.config/autostart.sh##

Reboot and you’re all set!

NOTE: browse to /usr/share/zoneinfo to find your timezone name. Mine was /America/Chicago.

Note that you don’t actually need to use rm when you’re using the force option (-f) on ln (since that tells it to remove the file if needed). Just FYI.

Thanks! I edited the instructions accordingly. I’m a linux n00b. :slight_smile:

I hate to resurrect an old thread, but it seems that this fix does NOT work on the latest version(s) of Plex Media Player. Has anyone figured out a fix yet?

@rossbeck said:
I hate to resurrect an old thread, but it seems that this fix does NOT work on the latest version(s) of Plex Media Player. Has anyone figured out a fix yet?

Apparently the embedded platform has adopted systemd…

You can still change the timezone link with autostart, but it looks like plex inherits timezone information from somewhere else in the system.

I found this which seems to work rather well too.

Creating a file named /storage/.cache/timezone with the single line TIMEZONE=US/Pacicfic worked for me (no quotes, no spaces, though I don’t know if that’s truly a restriction or not)

src: http://libretro.com/forums/showthread.php?t=4543

The above procedure started to work again on my RasPi2 with v1.1.7-RC2.
It even survived the automatic update from an earlier internal test build I ran.

Just don’t get impatient when you run ln -sf /usr/share/zoneinfo/America/Chicago /var/run/localtime for the first time in ssh.
It takes ~20 seconds until the change is reflected in the PMP GUI.

@OttoKerner said:
The above procedure started to work again on my RasPi2 with v1.1.7-RC2.
It even survived the automatic update from an earlier internal test build I ran.

Just don’t get impatient when you run ln -sf /usr/share/zoneinfo/America/Chicago /var/run/localtime for the first time in ssh.
It takes ~20 seconds until the change is reflected in the PMP GUI.

Doesn’t work for me on Embedded 1.1.7-RC2. Running date in ssh returned proper timezone and time/date, but the UI isn’t showing the right time.

@d2dyno said:
Doesn’t work for me on Embedded 1.1.7-RC2. Running date in ssh returned proper timezone and time/date, but the UI isn’t showing the right time.

Apparently, in the RasPi something is different.

In a different thread, I saw a suggestion that the timezone gets cached by the Qt framework.
Maybe you could empty the QtWebEngine cache and see what happens?
Unfortunately, this cache folder is not exposed in the smb:// share of PMP-embedded. So you have to access it with sftp /storage/.cache/plexmediaplayer/QtWebEngine/Default/Cache

Or just switch to OpenPHT and get this and many more features. I’ve given
up on PMP until there’s some major revisions. Nothing against the devs, I
know they’re busy, but it seems that PMP is low on the totem.

On Tue, Nov 15, 2016 at 5:48 AM, OttoKerner <forums+d222496-s6025034@plex.tv

rm -f /var/run/localtime
cat < /storage/.config/autostart.sh
ln -sf /usr/share/zoneinfo/Europe/Amsterdam /var/run/localtime
EOF
chmod +x /storage/.config/autostart.sh

  1. SSH into your embedded PMP machine.
  2. Type ls -l /usr/share/zoneinfo to list the region names and find YOUR_REGION_NAME .
  3. Type ls -l /usr/share/zoneinfo/YOUR_REGION_NAME/ to find YOUR_TIMEZONE_NAME for your region.
  4. Type echo 'systemctl set-environment TZ=YOUR_REGION_NAME/YOUR_TIMEZONE_NAME' >> .config/autostart.sh

FROM: [Updated] Embedded Plex Media Player x86_64: Workaround to reflect localtime in UI

IT WORKS