From 8082d87da385e2a4aeaff915799d26feb42b83af Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 6 Jan 2020 16:00:52 +0000 Subject: feat(third_party/git/date): add "dottime" format Adds dottime (as defined on https://dotti.me) as a timestamp format. This format is designed to simplify working with timestamps across many different timezones by keeping the timestamp format itself in UTC (and indicating this with a dot character), but appending the local offset. This is implemented as a new format because the timestamp needs to be rendered both as UTC and including the offset, an implementation using a strftime formatting string is not sufficient. --- third_party/git/cache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'third_party/git/cache.h') diff --git a/third_party/git/cache.h b/third_party/git/cache.h index b1da1ab08f..023e8af412 100644 --- a/third_party/git/cache.h +++ b/third_party/git/cache.h @@ -1498,7 +1498,8 @@ enum date_mode_type { DATE_RFC2822, DATE_STRFTIME, DATE_RAW, - DATE_UNIX + DATE_UNIX, + DATE_DOTTIME }; struct date_mode { -- cgit 1.4.1