[3156] in BarnOwl Developers
[barnowl/barnowl] 4ebbfb: Show the time zone in :info; replace ctime with st...
daemon@ATHENA.MIT.EDU (noreply@github.com)
Sat Jul 23 20:28:47 2011
Date: Sat, 23 Jul 2011 17:28:46 -0700
To: barnowl-dev@mit.edu
From: noreply@github.com
Branch: refs/heads/master
Home: https://github.com/barnowl/barnowl
Commit: 4ebbfbc5360fa004637dd101f5a0c833cdccd60a
https://github.com/barnowl/barnowl/commit/4ebbfbc5360fa004637dd101f5a0c833cdccd60a
Author: Jason Gross <jgross@mit.edu>
Date: 2011-07-23 (Sat, 23 Jul 2011)
Changed paths:
M functions.c
M message.c
M perl/modules/Twitter/lib/BarnOwl/Module/Twitter/Handle.pm
M util.c
Log Message:
-----------
Show the time zone in :info; replace ctime with strftime
This fixes trac-#146.
The new function owl_util_time_to_timestr takes a const struct tm *
instead of a const time_t because, although we pass around time_t for
just about everything else, this lets the caller decide whether to use
localtime or gmtime (UTC).
Note: I'm not sure that "%c" (which is locale-dependent) will always
include the time zone. If not, or if we want a bit more consistency, we
can switch to something like "%a %b %d %H:%M:%S %Y %Z" (like "Fri Jul 22
15:39:45 2011 EDT") or "%a %b %d, %Y %h:%M:%S %p %Z" (like "Fri Jul 22,
2011 03:39:45 PM 2011 EDT") or something. On linerva, "%c" seems to be
equivalent to "%a %d %b %Y %h:%M:%S %p %Z" (like "Fri 22 Jul 2011
03:39:45 PM EDT").