Re: Time stamp is off
Am 19.06.2023 um 21:30 schrieb R. H. van der Gaag : > > On 19 Jun 2023, at 18:46, Richard Kimberly Heck wrote: >> >> On 6/19/23 09:36, R. H. van der Gaag wrote: >>> >>> Thanks for checking. Insert date gives the correct (Dutch) time here, too. >>> But the time stamps added to the LaTeX preview are always exactly two hours >>> behind. A riddle. >> >> Two hours behind sounds like UCT (GMT). European time is one hour ahead but >> then another hour for daylight savings. I suspect that your system clock is >> set for UCT, which is what LaTeX is picking up. >> >> I've had similar problems on a Windows system. > > My macOS preferences say "Central European Summer Time" and in the terminal I > get > > rh@iMac ~ % date > Mon Jun 19 21:27:10 CEST 2023 > > It remains a mystery, then, where LyX or LaTeX gets its UCT/GMT time from. > Should I worry about this possibly messing up sync? Which sync you’re referring to? I’ve read the code for change tracking in LyX and IMO its as follows: 1. LyX saves the timestamp to the document file as Unix timestamp. No timezone involved. (*) 2. LyX converts this timestamp to string presentation via gmtime(3) and asctime(3). No timezone involved again. IMO there is no sync problem in LyX documents. The saved timestamp is always w/o timezone. The timestamps in LaTeX export file should be interpreted as UTC. (*) Others problems are implied: 1. Unix time_t doesn’t consider leap seconds. 2. On 32-bit systems the time ends on January 19, 2038. Stephan -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
On 6/19/23 15:30, R. H. van der Gaag wrote: On 19 Jun 2023, at 18:46, Richard Kimberly Heck wrote: On 6/19/23 09:36, R. H. van der Gaag wrote: Thanks for checking. Insert date gives the correct (Dutch) time here, too. But the time stamps added to the LaTeX preview are always exactly two hours behind. A riddle. Two hours behind sounds like UCT (GMT). European time is one hour ahead but then another hour for daylight savings. I suspect that your system clock is set for UCT, which is what LaTeX is picking up. I've had similar problems on a Windows system. My macOS preferences say "Central European Summer Time" and in the terminal I get rh@iMac ~ % date Mon Jun 19 21:27:10 CEST 2023 It remains a mystery, then, where LyX or LaTeX gets its UCT/GMT time from. Should I worry about this possibly messing up sync? Sync has been the problem for me. But if you're not seeing a problem, I wouldn't worry about it. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
On 19 Jun 2023, at 18:46, Richard Kimberly Heck wrote: > > On 6/19/23 09:36, R. H. van der Gaag wrote: >> >> Thanks for checking. Insert date gives the correct (Dutch) time here, too. >> But the time stamps added to the LaTeX preview are always exactly two hours >> behind. A riddle. > > Two hours behind sounds like UCT (GMT). European time is one hour ahead but > then another hour for daylight savings. I suspect that your system clock is > set for UCT, which is what LaTeX is picking up. > > I've had similar problems on a Windows system. My macOS preferences say "Central European Summer Time" and in the terminal I get rh@iMac ~ % date Mon Jun 19 21:27:10 CEST 2023 It remains a mystery, then, where LyX or LaTeX gets its UCT/GMT time from. Should I worry about this possibly messing up sync? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
On 6/19/23 09:36, R. H. van der Gaag wrote: Thanks for checking. Insert date gives the correct (Dutch) time here, too. But the time stamps added to the LaTeX preview are always exactly two hours behind. A riddle. Two hours behind sounds like UCT (GMT). European time is one hour ahead but then another hour for daylight savings. I suspect that your system clock is set for UCT, which is what LaTeX is picking up. I've had similar problems on a Windows system. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
> On 18 Jun 2023, at 20:24, wrote: > >> -Oorspronkelijk bericht- >> Van: lyx-users Namens R. H. van der Gaag >> Verzonden: zondag 18 juni 2023 15:10 > ... >> On 18 Jun 2023, at 15:01, Maria Gouskova wrote: >> >>> On Sun, Jun 18, 2023 at 7:22 AM R. H. van der Gaag >> wrote: >>> Hi all, >>> I noticed the time stamp on tracked changes is two hours off. Solutions >>> found >> online seem to fail. Is there a way to get correct time stamps? >>> >>> I cannot reproduce this here--my time stamps look correct. I am using LyX >>> 2.3.6 >> on Linux Mint 21, Cinnamon 5.4.12. (Btw, it helps when you include details >> of your >> system and installation for questions like this). >> >> Of course, sorry about that. This is on LyX 2.3.7, macOS 13.4, on an M1 >> iMac. I am >> in the Amsterdam timezone, and time stamps like \lyxadded{RH}{Sun Jun 18 >> 13:00:02 2023} are two hours behind. I worry about this a little bit: time >> discrepancies can cause nasty synchronisation issues sometimes. This has not >> happened so far, but since I am working on two machines, I have to be >> careful. > > For me it also works correctly. I am in the same timezone (Amsterdam), and my > LyX date format is %c > (Tools / Preferences / Output / General / Dateformat). > Insert / Date gives Sun Jun 18 20:24:41 2023 Thanks for checking. Insert date gives the correct (Dutch) time here, too. But the time stamps added to the LaTeX preview are always exactly two hours behind. A riddle. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
RE: Time stamp is off
> -Oorspronkelijk bericht- > Van: lyx-users Namens R. H. van der Gaag > Verzonden: zondag 18 juni 2023 15:10 ... > On 18 Jun 2023, at 15:01, Maria Gouskova wrote: > > > On Sun, Jun 18, 2023 at 7:22 AM R. H. van der Gaag > wrote: > > Hi all, > > I noticed the time stamp on tracked changes is two hours off. Solutions > > found > online seem to fail. Is there a way to get correct time stamps? > > > > I cannot reproduce this here--my time stamps look correct. I am using LyX > > 2.3.6 > on Linux Mint 21, Cinnamon 5.4.12. (Btw, it helps when you include details of > your > system and installation for questions like this). > > Of course, sorry about that. This is on LyX 2.3.7, macOS 13.4, on an M1 iMac. > I am > in the Amsterdam timezone, and time stamps like \lyxadded{RH}{Sun Jun 18 > 13:00:02 2023} are two hours behind. I worry about this a little bit: time > discrepancies can cause nasty synchronisation issues sometimes. This has not > happened so far, but since I am working on two machines, I have to be careful. For me it also works correctly. I am in the same timezone (Amsterdam), and my LyX date format is %c (Tools / Preferences / Output / General / Dateformat). Insert / Date gives Sun Jun 18 20:24:41 2023 Kees -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
On 18 Jun 2023, at 15:01, Maria Gouskova wrote: > On Sun, Jun 18, 2023 at 7:22 AM R. H. van der Gaag > wrote: > Hi all, > I noticed the time stamp on tracked changes is two hours off. Solutions found > online seem to fail. Is there a way to get correct time stamps? > > I cannot reproduce this here--my time stamps look correct. I am using LyX > 2.3.6 on Linux Mint 21, Cinnamon 5.4.12. (Btw, it helps when you include > details of your system and installation for questions like this). Of course, sorry about that. This is on LyX 2.3.7, macOS 13.4, on an M1 iMac. I am in the Amsterdam timezone, and time stamps like \lyxadded{RH}{Sun Jun 18 13:00:02 2023} are two hours behind. I worry about this a little bit: time discrepancies can cause nasty synchronisation issues sometimes. This has not happened so far, but since I am working on two machines, I have to be careful. RH -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
Am Sonntag, dem 18.06.2023 um 13:21 +0200 schrieb R. H. van der Gaag: > I noticed the time stamp on tracked changes is two hours off. > Solutions found online seem to fail. Is there a way to get correct > time stamps? The time stamp is retrieved from the C++ time() function. Are you sure your system time is set up correctly? -- Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Time stamp is off
On Sun, Jun 18, 2023 at 7:22 AM R. H. van der Gaag wrote: > Hi all, > I noticed the time stamp on tracked changes is two hours off. Solutions > found online seem to fail. Is there a way to get correct time stamps? > I cannot reproduce this here--my time stamps look correct. I am using LyX 2.3.6 on Linux Mint 21, Cinnamon 5.4.12. (Btw, it helps when you include details of your system and installation for questions like this). Maria -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Time stamp is off
Hi all, I noticed the time stamp on tracked changes is two hours off. Solutions found online seem to fail. Is there a way to get correct time stamps? Thanks. RH -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users