Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1294590
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/5] Handle both ISO 8601 encodings of midnight in mktime64() |
| Date | 2015-12-18 10:20 +0100 |
| Message-ID | <qGZmI-3IZ-47@gated-at.bofh.it> (permalink) |
| References | <qGQMp-6FZ-3@gated-at.bofh.it> <qGQMp-6FZ-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Friday 18 December 2015 00:02:17 David Howells wrote: > ISO 8601 format dates permit two different encodings of midnight - 00:00:00 > and 24:00:00 - the first is midnight today and the second is midnight > tomorrow and is exactly equivalent to the first with tomorrow's date. > > Note that the implementation of mktime64() doesn't actually need to be > changed to handle this - the multiplication by 3600 of the hour will take > care of it automatically. However, we should document that this handling > is done in mktime64() and is thus in a common place in the kernel. > > This handling is required for X.509 certificate parsing which can be given > ISO 8601 dates. > > Signed-off-by: David Howells <dhowells@redhat.com> > cc: John Stultz <john.stultz@linaro.org> > cc: Arnd Bergmann <arnd@arndb.de> > cc: stable@vger.kernel.org > Acked-by: Arnd Bergmann <arnd@arndb.de> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/5] X.509: Fix time handling David Howells <dhowells@redhat.com> - 2015-12-18 01:10 +0100
[PATCH 4/5] Handle both ISO 8601 encodings of midnight in mktime64() David Howells <dhowells@redhat.com> - 2015-12-18 01:10 +0100
Re: [PATCH 4/5] Handle both ISO 8601 encodings of midnight in mktime64() Arnd Bergmann <arnd@arndb.de> - 2015-12-18 10:20 +0100
[PATCH 5/5] X.509: Handle midnight alternative notation in GeneralizedTime David Howells <dhowells@redhat.com> - 2015-12-18 01:10 +0100
csiph-web