artynusov / MacTimeLog

Simple time tracking tool for Mac OS X
htttp://mactimelog.splyer.com
Other
41 stars 10 forks source link

Make more things configurable in Preferences #3

Open infotexture opened 14 years ago

infotexture commented 14 years ago
artynusov commented 14 years ago
  1. Do you want to use multiple logs? Or do you want it to be easy accessible ?
  2. This is good idea, need to think about best way of implementing it.

Thank you for good suggestions!

infotexture commented 14 years ago

Regarding 1, I'm more interested in being able to store the file elsewhere (perhaps for version control). I don't see an immediate need for multiple logs, but others might.

Regarding 2, I think it makes sense to use ISO 8601 as the default format for timestamps in the log, since the [YYYY]-[MM]-[DD] [hh]:[mm] can be easily sorted, whereas the current default format cannot. However, I'm sure many users would appreciate the ability to change this setting, and since they've presumably already configured their system with their preferred settings, it would be nice to pick those up.

Maybe add a pref that reads Timestamp format: [short|medium|long|full] with a link to the system Language & Text prefs.

artynusov commented 14 years ago
  1. Clear, makes more sense now.
  2. Log already sorted, but you right, some users may want to use different format.
infotexture commented 14 years ago

Yes, within MacTimeLog, entries are currently sorted as they are created, since lines are appended to the end of the file, but if entry lines are run through the UNIX sort command by an external process, the current date format yields undesirable results, as the lines are sorted by the days only, ignoring month, year, or time.

In this case,

12-31-2008 12:00   Client :: The First Task
01-01-2009 12:00   Client :: The Second Task

becomes:

01-01-2009 12:00   Client :: The Second Task
12-31-2008 12:00   Client :: The First Task

Whereas ISO 8601 [YYYY]-[MM]-[DD] [hh]:[mm] format sorts as expected.