Menu

#32 Formatted dates are double quoted

open
nobody
None
5
2008-02-27
2008-02-27
Anonymous
No

If using YamlConfig.setDateFormat() to specify a custom date format, the date formatter converts the date to a string and surrounds the value with quotes, and then YamlConfig.writeSimpleValue() surrounds that in another set of quotes.

It looks like the date formatter should not quote the string (org.ho.yaml.wrapper.DateWrapper line 105).

However, timestamp handling in YAML (see http://yaml.org/type/timestamp.html\) suggests that the value should be marked with !!timestamp and not quoted at all.

Discussion


Log in to post a comment.