[3195] in BarnOwl Developers
[barnowl/barnowl] 6646fd: Restore correct semantics of message 'time' attrib...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Wed Sep 7 10:07:08 2011
Date: Wed, 7 Sep 2011 07:07:06 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: 6646fdb981a88a6548cbc3da4b4963330fe1c7d6
https://github.com/barnowl/barnowl/commit/6646fdb981a88a6548cbc3da4b4963330fe1c7d6
Author: David Benjamin <davidben@mit.edu>
Date: 2011-09-07 (Wed, 07 Sep 2011)
Changed paths:
M functions.c
M message.c
M util.c
Log Message:
-----------
Restore correct semantics of message 'time' attribute
This rewrites part of 4ebbfbc5360fa004637dd101f5a0c833cdccd60a. We can't
replace every instance of ctime with a user-formatted time, as the time
attribute is not user-formatted. It is (unfortunately) the API for perl
to override the timestamp and owl_perlconfig_hashref2message expects a
particular format for strptime. We should not then flip the values
around once they reach C. (Especially not a locale-dependent one.)
Rename *_to_timestr functions to owl_util_format_* so it is clear the
function should only be used for user-formatted times.