NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 4 5 6 7 8 … 193 Next »
24h clock option for TV Guide

 
  • 1 Vote(s) - 5 Average
24h clock option for TV Guide
luguber
Offline

Junior Member

Norway
Posts: 31
Threads: 6
Joined: Sep 2021
#1
2021-09-09, 09:20 AM
I'd like an option to chose between 12 and 24h clock in the TV Guide. I believe most of Europe at least uses 24 hour clock.
It's not a big deal though as I mostly uses the guide via Kodi where I have 24h clock, so its just a "nice to have" thing.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,978
Threads: 956
Joined: May 2006
#2
2021-09-09, 01:00 PM
NextPVR doesn't control this. Did you check your desktop settings for displaying date/time? Also some browsers have different methods so you may need to do an internet search

Martin
luguber
Offline

Junior Member

Norway
Posts: 31
Threads: 6
Joined: Sep 2021
#3
2021-09-09, 03:05 PM (This post was last modified: 2021-09-09, 03:07 PM by luguber.)
Yes, I have everything set up with 24h. But you gave me a pointer there that I didn't think of. If this isn't set by NextPVR then it must communicate with the browser at some level to select locales
So a little search in the web root folder gave me this:
(in /opt/nextpvr/system/wwwroot/guide.html)

Code:
        // populate the timelines at top and bottom of the screen
        function loadTimeline() {

            var date = new Date(Date.UTC(2012, 11, 12, 3, 0, 0));
            var dateString = date.toLocaleTimeString();
            var militaryTime = true;
            //apparently toLocaleTimeString() has a bug in Chrome. toString() however returns 12/24 hour formats. If one of two contains AM/PM execute 12 hour coding.
            if (dateString.match(/am|pm/i) || date.toString().match(/am|pm/i)) {
                //12 hour clock
                militaryTime = true;
            }      

So it turns out to be a bug in Chrome. I tried with Firefox, and well it gave me 24h.
A dirty fix for me was just to changed the last militaryTime to true, to always force 24h clock.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Clock in UI Client VCR58 5 1,052 2024-12-29, 11:57 PM
Last Post: artmetz
Lightbulb An option when confronted with a "Scheduling Error". Siamese Cat 2 556 2024-07-07, 12:16 PM
Last Post: mvallevand
  cast / actors in guide a1blues 3 901 2024-05-27, 09:31 AM
Last Post: a1blues
  Delete option from Videos feature artmetz 5 1,487 2022-03-17, 07:38 PM
Last Post: HarryH3
  Recorded movie/show indicator in guide artmetz 0 937 2021-04-18, 03:55 PM
Last Post: artmetz
  Web App Guide Arrow Keys jcole998 2 1,336 2021-01-17, 10:20 PM
Last Post: jcole998
  Use of keyboard navigating through Program Guide TheRealRoland 2 1,369 2020-11-12, 08:04 PM
Last Post: TheRealRoland
  Program Guide view - show summary information of any entry TheRealRoland 0 948 2020-11-12, 07:35 PM
Last Post: TheRealRoland
  v5 Webclient TV Guide "Live TV" Tuner indicator elstaci 5 1,977 2020-08-01, 09:23 PM
Last Post: sub
  V5 additional channel information for recordings and guide pop-up ctrlbrk 0 1,094 2020-06-06, 11:37 PM
Last Post: ctrlbrk

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode