NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 4 5 6 7 8 … 81 Next »
Guide Timeline - time display

 
  • 0 Vote(s) - 0 Average
Guide Timeline - time display
matey
Offline

Junior Member

Canada
Posts: 2
Threads: 1
Joined: May 2023
#1
2023-05-29, 06:59 PM
Hey sub,

I noticed that the guide's timeline is showing military format of time rather than the system's regional setting of 12h. I checked the source code in the webpage (Version: 6.1.3.230521) and see that you're checking for the system to use am/pm in this code.

            if (dateString.match(/am|pm/i) || date.toString().match(/am|pm/i)) {
                //12 hour clock
                militaryTime = false;
            }

In Safari on my iPad and Mac these do return am/pm, as per your check. However, on my Windows 11 with Edge, the system is using a.m./p.m.

Here's the console log output:

guide.html:334 0: 12:00:00 a.m.
guide.html:346 0: 12:30:00 a.m.

Could you please update your code to look for either am/pm or a.m./p.m.?

Thanks
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 103,926
Threads: 752
Joined: Nov 2003
#2
2023-05-29, 07:08 PM
Can you check if changing it to the followiing works for your system time?

Code:
if (dateString.match(/am|pm/i) || date.toString().match(/am|pm/i) || dateString.match(/a.m.|p.m./i) || date.toString().match(/a.m.|p.m./i)) {
matey
Offline

Junior Member

Canada
Posts: 2
Threads: 1
Joined: May 2023
#3
2023-05-29, 07:18 PM
Yes, it does fix it.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 103,926
Threads: 752
Joined: Nov 2003
#4
2023-05-29, 07:24 PM
Ok thanks for the confirmation. I’ll include the change with the next build.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Time line thumbnails mlopez1007 2 67 2023-09-04, 10:51 PM
Last Post: mlopez1007
  EPG and time format daydreaming5 7 147 2023-08-15, 08:31 AM
Last Post: sub
  No guide not recording brady@preheim.com 1 80 2023-07-31, 11:49 AM
Last Post: mvallevand
  Time in NPVR Guide is off by one hour - why? RichU 8 165 2023-07-30, 06:27 PM
Last Post: sub
  having a difficult time installing latest version stamanf 10 178 2023-07-23, 02:57 AM
Last Post: stamanf
  Help With TV Guide Setup oldschoolbob 10 2,015 2023-07-11, 04:50 PM
Last Post: mvallevand
  Tv Guide reports "no listing" markn62 16 309 2023-07-04, 08:58 PM
Last Post: joshskey
  TV Guide not updating skinny 13 2,622 2023-06-28, 04:47 PM
Last Post: mvallevand
  TV Guide jcole998 3 124 2023-06-25, 06:18 PM
Last Post: jcole998
  Recordings scheduled through guide are all failing, but manually scheduled succeed 4zm4r3d02 10 268 2023-06-18, 10:38 PM
Last Post: 4zm4r3d02

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

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

Linear Mode
Threaded Mode