emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#12246: closed ([patch] iso 8601 specifies zero pad


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#12246: closed ([patch] iso 8601 specifies zero padding, not space padding)
Date: Sun, 26 Aug 2012 22:23:02 +0000

Your message dated Mon, 27 Aug 2012 00:21:24 +0200
with message-id <address@hidden>
and subject line Re: bug#12246: [patch] iso 8601 specifies zero padding, not 
space padding
has caused the debbugs.gnu.org bug report #12246,
regarding [patch] iso 8601 specifies zero padding, not space padding
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
12246: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12246
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [patch] iso 8601 specifies zero padding, not space padding Date: Tue, 21 Aug 2012 12:21:58 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
In srfi 19, there is convenience format directives for various ISO 8601
date/time formats. i.e.

     ~2     ISO-8601 time+zone, `~k:~M:~S~z'
     ~3     ISO-8601 time, `~k:~M:~S'
     ~4     ISO-8601 date/time+zone, `~Y-~m-~dT~k:~M:~S~z'
     ~5     ISO-8601 date/time, `~Y-~m-~dT~k:~M:~S'

However, ~k is incorrect here, as iso 8601 specifies that hours have two
digits (i.e. 9am is "09") which means the ~H directive.

Funnily enough, if you look in srfi-19.scm itself you even see

(define iso-8601-date-time-format "~Y-~m-~dT~H:~M:~S~z")

note, the ~H.

I've attached a patch to fix these.
     
-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"

Attachment: 0001-ISO-8601-time-format-specifies-zero-padding-for-hour.patch
Description: srfi-19 patch


--- End Message ---
--- Begin Message --- Subject: Re: bug#12246: [patch] iso 8601 specifies zero padding, not space padding Date: Mon, 27 Aug 2012 00:21:24 +0200 User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux)
Applied, thanks!

Ludo'.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]