NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 162 163 164 165 166 … 433 Next »
Recordings have wrong time

Recordings have wrong time
dvasco
Offline

Senior Member

Posts: 718
Threads: 113
Joined: Jun 2006
#1
2013-01-06, 03:33 AM
When I setup my xmltv file years ago while using GBPVR I used +0000 for the offset time. When I upgraded to NPVR I used the same xmltv setup. Now if I import the recordings into a new install of NPVR the time of the recordings is off by 6 hours. What can I do to correct the times of the recordings?

Thanks in advance.
[SIZE="1"] [COLOR="Blue"]
NPVR | Athlon XP 5000+ 2 GB RAM | Asus EAH3450 | Hauppauge HVR-1600 & Colossus | MS MCE Beanbag
Harmony 659 | RF keyboard | Vizio 42" LCD & Panasonic 32" CRT | 3 PCH A-100 [/COLOR][/SIZE]
Kiwi
Offline

Member

Posts: 215
Threads: 32
Joined: Oct 2012
#2
2013-01-06, 06:08 AM
dvasco Wrote:When I setup my xmltv file years ago while using GBPVR I used +0000 for the offset time. When I upgraded to NPVR I used the same xmltv setup. Now if I import the recordings into a new install of NPVR the time of the recordings is off by 6 hours. What can I do to correct the times of the recordings?

Thanks in advance.

U can try to edit the xmltv file to the appropriate times before importing the file.
dvasco
Offline

Senior Member

Posts: 718
Threads: 113
Joined: Jun 2006
#3
2013-01-06, 06:27 AM
Then I would have to do that for the start and end time for about 100 files. There's no way to bulk change the times? I am a bit confused on why the times are the same in the original system as a new install on another but the original system knows to subtract 6 hours and the new install doesn't know to do that for the imported files.
[SIZE="1"] [COLOR="Blue"]
NPVR | Athlon XP 5000+ 2 GB RAM | Asus EAH3450 | Hauppauge HVR-1600 & Colossus | MS MCE Beanbag
Harmony 659 | RF keyboard | Vizio 42" LCD & Panasonic 32" CRT | 3 PCH A-100 [/COLOR][/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,727
Threads: 767
Joined: Nov 2003
#4
2013-01-06, 04:36 PM
How exactly are you trying to import these recordings?

NextPVR is based on UTC, where as the old GBPVR software used local times. For the most part it should handle the conversion automatically if it knows the recordings being imported are from GBPVR.
dvasco
Offline

Senior Member

Posts: 718
Threads: 113
Joined: Jun 2006
#5
2013-01-06, 07:07 PM
I should included the following statement in my original post "After upgrading from GBPVR to NPVR the correct times were maintained" It is only when I do a fresh install of NPVR on a new system and I import the recordings from an existing install of NPVR.

Would tricking NPVR into thinking the recordings are from GBPVR fix the recordings times?
[SIZE="1"] [COLOR="Blue"]
NPVR | Athlon XP 5000+ 2 GB RAM | Asus EAH3450 | Hauppauge HVR-1600 & Colossus | MS MCE Beanbag
Harmony 659 | RF keyboard | Vizio 42" LCD & Panasonic 32" CRT | 3 PCH A-100 [/COLOR][/SIZE]
BrettB
Offline

Posting Freak

Saint Paul, MN, USA
Posts: 2,667
Threads: 170
Joined: Jun 2007
#6
2013-01-06, 09:05 PM
sub Wrote:How exactly are you trying to import these recordings?

Are you, by chance, using Vidimport to create the import file? It does not generate the recording times properly for NextPVR's import files unless your local timezone is UTC+0 because it uses the local timezone not UTC for the times in the generated .xml file.
dvasco
Offline

Senior Member

Posts: 718
Threads: 113
Joined: Jun 2006
#7
2013-01-06, 09:38 PM
I use the import recordings option in the Settings menu of NPVR and I point to the recording-backup.xml file from the old NPVR.
[SIZE="1"] [COLOR="Blue"]
NPVR | Athlon XP 5000+ 2 GB RAM | Asus EAH3450 | Hauppauge HVR-1600 & Colossus | MS MCE Beanbag
Harmony 659 | RF keyboard | Vizio 42" LCD & Panasonic 32" CRT | 3 PCH A-100 [/COLOR][/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,727
Threads: 767
Joined: Nov 2003
#8
2013-01-07, 12:29 AM
Are you sure the timezone is set correctly on both PCs? ie, the one that originally exported the file, and the new one trying to import.

I've not seen any reported issues with importing recordings-backup.xml from NextPVR
danorum
Offline

Junior Member

Posts: 26
Threads: 4
Joined: Aug 2015
#9
2015-09-09, 10:57 PM
sub Wrote:Are you sure the timezone is set correctly on both PCs? ie, the one that originally exported the file, and the new one trying to import.

I've not seen any reported issues with importing recordings-backup.xml from NextPVR

I just had this happen to me when I was moving files from one drive to another. I used the export from the menu in NextPVR, did a find/replace to change f:\ to g:\ in the xml file, and then did an import (on the same computer). The result was that the recording time is "off" on the imported ones.

This isn't a huge deal for me, because I won't key off the time recorded much anyway. Just wanted to report it.

Dan
danorum
Offline

Junior Member

Posts: 26
Threads: 4
Joined: Aug 2015
#10
2015-09-10, 03:26 PM (This post was last modified: 2015-09-10, 04:12 PM by danorum.)
I did some more debugging on this and I think I see what is happening. If I look at a recording that has not been imported (recorded since I switched drives), I see similar times in the recording object and the recording cached event details. Both of these show times in UTC. However, if I look at one that has been imported, the recording.CachedEventDetails are in UTC, but the recording.starttime and recording.endtime are in my local time.

I wrote a .NET console app to get recording info. 2585 was recorded after the import and the rest are imported shows. I did delete a bunch of rows, but they all showed the same thing. The details from the guide are correct, but the start and stop time of the actual recording have been stored in "local time".

I may try writing an app to clean this up as long as recording.StartTime and Recording.EndTime are writable, which I think they are.

EDIT - It was writable, so my code checked to see if there was more than 5 minutes difference between the recording start time and the guide event start time and if so, I added 5 hours (because of my time zone) to the recording.StartTime and recording.EndTime and then called recording.save(). Now all my recordings show the correct time in NextPVR. The exported XML looks correct with all Z times, so it is probably code in the import that is changing it to local time.

Dan

Code:
OID,recording.StartTime,recording.EndTime,CachedEventDetails.StartTime,CachedEventDetails.EndTime
2666,9/8/2015 6:59:00 PM,9/8/2015 8:02:00 PM,9/9/2015 12:00:00 AM,9/9/2015 1:00:00 AM
2665,9/8/2015 7:59:00 PM,9/8/2015 9:02:00 PM,9/9/2015 1:00:00 AM,9/9/2015 2:00:00 AM
2664,9/8/2015 8:59:00 PM,9/8/2015 10:02:00 PM,9/9/2015 2:00:00 AM,9/9/2015 3:00:00 AM
2663,9/8/2015 10:34:00 PM,9/8/2015 11:39:00 PM,9/9/2015 3:35:00 AM,9/9/2015 4:37:00 AM
2662,9/9/2015 1:59:00 PM,9/9/2015 3:02:00 PM,9/9/2015 7:00:00 PM,9/9/2015 8:00:00 PM
2585,9/10/2015 3:34:01 AM,9/10/2015 4:39:00 AM,9/10/2015 3:35:00 AM,9/10/2015 4:37:00 AM
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Failed recordings won't delete Spid4567 3 2,472 2023-07-14, 10:13 PM
Last Post: ZeDoZ
  All my recordings start 90 sec early ncsercs 2 1,365 2022-03-19, 03:28 AM
Last Post: sub
  EPG Time shifi Brucek2839 14 4,087 2021-03-25, 08:45 PM
Last Post: Graham
  Wake - Sleep Interaction -> Failed Recordings mikeh49 48 14,579 2021-03-21, 11:21 PM
Last Post: careads
  Most recordings are zero bytes virtualpaul 4 2,042 2021-01-29, 12:55 PM
Last Post: virtualpaul
  Recording service stopped or not running at scheduled time MattInetroit 3 1,893 2021-01-08, 12:03 AM
Last Post: mvallevand
  Recordings with Next PVR 4.2.5 (CL0116) have background music but no voice in record DavidF 4 2,084 2021-01-07, 08:47 AM
Last Post: sub
  maximize goes to wrong monitor workmanrob 2 1,322 2020-12-27, 03:30 PM
Last Post: workmanrob
  Possible to set the EPG source for more than one channel at a time? LeGrandZombie 15 8,090 2020-12-06, 02:15 AM
Last Post: pitbull1969
  Recordings not playing in browser FamilyGuyFan 1 1,430 2020-10-22, 10:18 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode