René Scharfe
c3fbf81a85
strbuf: let strbuf_addftime handle %z and %Z itself
...
There is no portable way to pass timezone information to strftime. Add
parameters for timezone offset and name to strbuf_addftime and let it
handle the timezone-related format specifiers %z and %Z internally.
Callers can opt out for %Z by passing NULL as timezone name. %z is
always handled internally -- this helps on Windows, where strftime would
expand it to a timezone name (same as %Z), in violation of POSIX.
Modifiers are not handled, e.g. %Ez is still passed to strftime.
Use an empty string as timezone name in show_date (the only current
caller) for now because we only have the timezone offset in non-local
mode. POSIX allows %Z to resolve to an empty string in case of missing
information.
Helped-by: Ulrich Mueller <ulm@gentoo.org >
Helped-by: Jeff King <peff@peff.net >
Signed-off-by: Rene Scharfe <l.s.r@web.de >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2017-06-15 14:34:37 -07:00
..
2017-04-20 22:05:37 -07:00
2017-05-09 23:26:02 +09:00
2017-04-23 22:07:53 -07:00
2017-01-31 12:18:18 -08:00
2017-02-24 10:48:08 -08:00
2017-01-23 10:56:47 -08:00
2015-05-21 13:03:37 -07:00
2017-01-17 14:32:47 -08:00
2017-03-30 14:07:14 -07:00
2017-01-17 15:19:08 -08:00
2017-01-23 15:59:23 -08:00
2017-03-02 11:40:51 -08:00
2017-03-02 11:40:51 -08:00
2016-12-23 12:32:22 -08:00
2017-03-02 11:40:51 -08:00
2016-05-09 15:44:14 -07:00
2016-10-10 14:03:50 -07:00
2015-05-28 12:38:46 -07:00
2016-09-12 15:03:32 -07:00
2016-07-13 11:24:14 -07:00
2016-09-19 10:25:11 -07:00
2017-03-02 11:40:51 -08:00
2017-04-20 22:05:38 -07:00
2017-04-20 22:05:38 -07:00
2017-04-01 11:35:45 -07:00
2016-10-10 14:03:51 -07:00
2017-04-11 00:21:50 -07:00
2016-02-01 13:07:41 -08:00
2016-09-11 14:48:15 -07:00
2015-10-16 15:27:52 -07:00
2016-05-09 15:44:14 -07:00
2017-02-21 13:02:42 -08:00
2017-03-16 14:07:16 -07:00
2016-07-28 11:25:54 -07:00
2016-06-28 08:20:52 -07:00
2017-03-18 09:51:23 -07:00
2016-07-28 11:25:54 -07:00
2017-05-01 11:01:52 +09:00
2016-09-08 21:35:56 -07:00
2016-10-10 13:52:37 -07:00
2017-03-17 11:19:40 -07:00
2016-06-28 08:36:45 -07:00
2016-10-03 13:22:25 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2017-03-22 10:13:41 -07:00
2016-06-28 08:36:45 -07:00
2016-06-28 08:36:45 -07:00
2017-04-13 16:15:25 -07:00
2017-02-08 13:30:28 -08:00
2015-05-12 22:14:46 -07:00
2016-07-13 11:24:14 -07:00
2016-11-18 13:06:14 -08:00
2017-01-17 15:19:10 -08:00
2017-03-03 12:43:37 -08:00
2016-10-28 05:51:51 -07:00
2017-03-24 12:15:26 -07:00
2017-04-23 22:07:55 -07:00
2016-07-18 15:15:59 -07:00
2017-02-24 09:59:12 -08:00
2015-10-16 15:27:52 -07:00
2016-12-22 11:47:33 -08:00
2017-01-13 12:23:28 -08:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:36:45 -07:00
2016-08-24 12:31:05 -07:00
2017-02-17 15:57:21 -08:00
2016-06-08 12:04:55 -07:00
2016-11-21 12:49:57 -08:00
2016-07-11 10:31:08 -07:00
2017-04-16 23:29:30 -07:00
2016-01-19 10:07:56 -08:00
2017-03-02 11:40:51 -08:00
2016-05-26 13:17:14 -07:00
2016-06-06 11:14:43 -07:00
2016-10-21 09:46:48 -07:00
2015-10-29 12:10:23 -07:00
2017-03-30 14:07:13 -07:00
2016-10-11 10:04:31 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:20:52 -07:00
2016-06-28 08:20:52 -07:00
2017-01-23 18:33:17 -08:00
2016-06-28 08:20:52 -07:00
2017-01-18 15:12:12 -08:00
2016-08-10 10:55:13 -07:00
2015-10-16 15:27:52 -07:00
2015-06-29 08:48:44 -07:00
2017-05-01 11:03:08 +09:00
2017-04-19 18:53:06 -07:00
2016-06-08 12:04:37 -07:00
2017-03-16 14:07:16 -07:00
2017-04-26 15:39:02 +09:00
2017-04-16 18:19:18 -07:00
2015-07-21 14:08:14 -07:00
2016-08-11 14:35:42 -07:00
2016-06-28 08:36:45 -07:00
2016-08-12 09:47:35 -07:00
2016-06-08 12:04:37 -07:00
2015-09-14 12:50:33 -07:00
2017-02-16 13:38:02 -08:00
2015-10-05 12:30:13 -07:00
2017-03-08 15:52:03 -08:00
2016-06-28 08:36:45 -07:00
2017-03-20 10:04:57 -07:00
2017-03-22 15:41:21 -07:00
2016-06-08 12:04:37 -07:00
2016-06-28 08:20:52 -07:00
2016-12-16 09:39:10 -08:00
2016-06-28 08:36:45 -07:00
2015-10-16 15:27:52 -07:00
2016-06-28 08:36:45 -07:00
2015-05-12 22:14:46 -07:00
2017-02-28 14:21:10 -08:00
2017-03-29 17:37:21 -07:00
2015-10-16 15:27:52 -07:00
2017-03-18 09:51:23 -07:00
2016-12-12 10:49:50 -08:00
2017-03-24 12:15:26 -07:00
2017-04-20 22:05:37 -07:00
2016-08-24 12:31:05 -07:00
2017-03-06 12:09:28 -08:00
2015-07-21 14:08:35 -07:00
2015-10-22 10:16:12 -07:00
2016-05-31 10:17:20 -07:00
2016-07-06 13:06:36 -07:00
2015-05-17 11:24:57 -07:00
2017-01-17 16:10:22 -08:00
2016-06-28 08:36:45 -07:00
2017-04-20 17:59:02 -07:00
2017-05-09 23:26:02 +09:00
2017-04-23 22:07:45 -07:00
2017-04-20 22:05:38 -07:00
2016-02-26 10:58:14 -08:00
2017-02-15 12:54:20 -08:00
2017-02-28 11:34:38 -08:00
2017-01-07 14:03:40 -08:00
2017-02-09 15:14:01 -08:00
2017-05-04 16:26:46 +09:00
2016-06-08 12:04:55 -07:00
2017-01-18 15:12:18 -08:00
2017-04-26 15:39:07 +09:00
2016-11-14 11:23:07 -08:00
2017-05-01 11:01:52 +09:00
2017-02-15 12:54:20 -08:00
2016-08-13 19:36:44 -07:00
2017-02-09 15:14:01 -08:00
2017-02-09 15:14:01 -08:00
2017-04-20 22:05:37 -07:00
2016-06-08 12:04:37 -07:00
2017-02-09 15:14:01 -08:00
2017-03-13 15:28:54 -07:00
2015-07-01 14:55:53 -07:00
2016-05-10 11:15:04 -07:00
2017-02-02 13:36:57 -08:00
2016-06-08 12:04:37 -07:00
2016-05-17 14:38:39 -07:00
2016-02-22 10:42:52 -08:00
2016-12-11 13:58:41 -08:00
2016-07-06 13:06:34 -07:00
2017-06-15 14:34:37 -07:00
2017-04-19 21:37:25 -07:00
2017-05-04 16:26:46 +09:00
2017-01-23 10:56:53 -08:00
2016-11-14 11:23:07 -08:00
2015-10-22 10:16:12 -07:00
2016-02-01 13:07:41 -08:00
2017-01-13 10:30:16 -08:00