NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 2 3 4 5 … 190 Next »
24h clock option for TV Guide

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

Junior Member

Norway
Posts: 27
Threads: 5
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
Online

Posting Freak

Ontario Canada
Posts: 44,835
Threads: 862
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: 27
Threads: 5
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
  Delete option from Videos feature artmetz 5 544 2022-03-17, 07:38 PM
Last Post: HarryH3
  Recorded movie/show indicator in guide artmetz 0 442 2021-04-18, 03:55 PM
Last Post: artmetz
  Web App Guide Arrow Keys jcole998 2 649 2021-01-17, 10:20 PM
Last Post: jcole998
  Use of keyboard navigating through Program Guide TheRealRoland 2 685 2020-11-12, 08:04 PM
Last Post: TheRealRoland
  Program Guide view - show summary information of any entry TheRealRoland 0 518 2020-11-12, 07:35 PM
Last Post: TheRealRoland
  v5 Webclient TV Guide "Live TV" Tuner indicator elstaci 5 1,116 2020-08-01, 09:23 PM
Last Post: sub
  V5 additional channel information for recordings and guide pop-up ctrlbrk 0 673 2020-06-06, 11:37 PM
Last Post: ctrlbrk
  V5 filter guide by search ctrlbrk 0 706 2020-06-06, 11:31 PM
Last Post: ctrlbrk
  Option to use alternate viewer LeGrandZombie 16 2,600 2020-03-28, 08:01 PM
Last Post: LeGrandZombie
  Changes to Season/Series recording option Reddwarf 7 1,935 2018-09-13, 07:03 AM
Last Post: Reddwarf

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

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

Linear Mode
Threaded Mode