QRecallDownloadIdentity KeysForumsSupport
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
Log not sorting properly by date  XML
Forum Index » Beta Version
Author Message
Ralph Strauch



Joined: 24-Oct-07 22:17
Messages: 194
Offline

The logs on both my MBP and iMac are putting all my 2016 log entries in between 12/26/15 and 12/27/16, as shown below. This log is from the MBP and I'm also sending a report from the iMac, in case that provides additional information.


This message was edited 1 time. Last update was at 03-Jan-16 14:49

James Bucanek



Joined: 14-Feb-07 10:05
Messages: 1548
Online

My bad.

The log entries are property sorted, the problem is that the dates are wrong. What's happened is that the timestamps in the last week of December have the wrong year, 2016-12-27 instead of 2015-12-27, which puts them far into the future.

The date formatter used to create the log entries was erroneously using the "YYYY-MM-dd..." format, when it should have been using "yyyy-MM-dd..." format. The YYYY specifier is the "year designation used in ISO year-week calendar as defined by ISO 8601", whatever the hell that is. Anyway, it's not the calendar year.

I've fixed it, but you'll have to wait until your log records get rotated out before they disappear. If you find it super annoying, just trash all of the log files in ~/Library/Logs/QRecall and restart. If you want to fix this without losing your log history, you'll have to get tricky. You could use an editor to replace all instances of "2016-12-" with "2015-12-", for example.

- QRecall Development -
[Email]
Ralph Strauch



Joined: 24-Oct-07 22:17
Messages: 194
Offline

Ah, thanks! I didn't look closely enough to notice that the late December dates were 2016. Thanks for pointing that out.
 
Forum Index » Beta Version
Go to:   
Powered by JForum 2.1.8 © JForum Team