[mythtv-users] How to set time zone
Monkey Pet
monkeypet at gmail.com
Tue Feb 18 02:20:43 UTC 2025
On Sun, Feb 16, 2025 at 11:30 AM Bob Sully <malibyte56 at gmail.com> wrote:
> Sorry for sending previously with the wrong subject.
> On 2/15/25 12:10, mythtv-users-request at mythtv.org wrote:
>
> OK...
> I rebooted the BE/FE system and changed the hardware clock to my current
> local time.
>
> The new web interface STILL lists the start times in UTC.
>
> I've never seen this before with the old Mythweb interface.
> Again, I'm running v34-fixes on Ubuntu 24.04.
>
> Every other app gets it correct.
>
>
> Please advise - thanks!!
>
>
>
> > Bob,
>
> > Just as a point of comparison, I live in the Eastern USA time zone. It was
> > recommended to me since I don't run Windows, that I should keep my hardware
> > RTC set to UTC. It's been that way for 15 years on all my PCs, except the
> > Windows Laptop I pull out once a year to run TurboTax.
> >
> > All my Mythtv apps including mythfrontend and the Web App for scheduling
> > and setup work in EST or EDT depending the time of year.
> > I sometimes take my portable Combo BE/FE mythtv NUC on the road in my
> > camper and I just use the KDE Plasma Timezone setting to change the
> > timezone and everything works just like at home.
> >
> > jim at mythtv:~$ sudo timedatectl
> > [sudo] password for jim:
> > Local time: Sat 2025-02-15 13:23:20 EST
> > Universal time: Sat 2025-02-15 18:23:20 UTC
> > RTC time: Sat 2025-02-15 18:23:20
> > Time zone: US/Eastern (EST, -0500)
> > System clock synchronized: yes
> > NTP service: active
> > RTC in local TZ: no
> >
> > Jim A
>
> Jim -
> As I had said earlier - I had always previously set the hardware RTC to UTC and never had any problems
> with Myth or any other app. Using the old Mythweb, the times were correct.
>
> No joy now with the hweclock set to UTC or PST.
>
> As an example, this is an entry from today's schedule (AFTER I rebooted with the hwclock set to local TZ):
>
> 2/15/2025
> 6:00 PM 180 min 2025 4 Nations Face-Off Team Finland vs. Team Sweden
> 2/15/2025
> 007 KABC
>
> As you can see, it lists the start time as 6:00 PM. The game actually
> started at 10:00 AM here.
>
>
> If I load up Mythweb: (192.168.56.9/mythweb) - the times are correct!!
>
> Still scratching my head.
>
>
> > What does this return (run on your backend): curl --header
> Accept:application/json localhost:6544/Myth/GetTimeZone
> > -- Bill
>
> [rcs at vader: ~]curl --header Accept:application/json localhost:6544/Myth/GetTimeZonene
> {"TimeZoneInfo": {"TimeZoneID": "America\/Los_Angeles", "UTCOffset": -28800, "CurrentDateTime": "2025-02-15T23:06:06Z"}}
>
>
> Bill - so it appears to be correct here.
> This, and the fact that the old Mythweb gets the listings correct - makes
> me think that there's some quirk in the new web interface **on this
> machine** that needs to be fixed.
>
Bob,
I ran into this also recently.
(1) set your RTC/hwclock to UTC.
(2) set your server wide local time zone to yours, make sure you do this
for the server and not just your local user.
(3) what's your output for timedatectl
(4) truncate the mythweb_sessions table,
https://forum.mythtv.org/viewtopic.php?p=11526#p11526
$ timedatectl
Local time: Mon 2025-02-17 18:11:33 PST
Universal time: Tue 2025-02-18 02:11:33 UTC
RTC time: Tue 2025-02-18 02:11:33
Time zone: America/Los_Angeles (PST, -0800)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
>
> Please advise - thanks!
>
> --
> --- Regards, *Bob Sully*
>
> --
> --- Regards, *Bob Sully*
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20250217/4045e112/attachment.htm>
More information about the mythtv-users
mailing list