diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-16 17:57:52 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-16 17:57:52 +0000 |
commit | 177dd7bff13c3f41a0e4a4455ff628dbbf9e44ca (patch) | |
tree | a6fd9048a7085a8bc7fb995c6531721329a37327 /lib | |
parent | 3ef00ddb58e144b7311ea0e6fe43261416d3c253 (diff) | |
download | redmine-177dd7bff13c3f41a0e4a4455ff628dbbf9e44ca.tar.gz redmine-177dd7bff13c3f41a0e4a4455ff628dbbf9e44ca.zip |
Fixed that timestamps may not be formatted as expected in XML responses (#19065).
git-svn-id: http://svn.redmine.org/redmine/trunk@14015 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/views/builders/xml.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/redmine/views/builders/xml.rb b/lib/redmine/views/builders/xml.rb index 37fd25d39..9f80a6088 100644 --- a/lib/redmine/views/builders/xml.rb +++ b/lib/redmine/views/builders/xml.rb @@ -30,9 +30,10 @@ module Redmine target! end - def method_missing(sym, *args, &block) + # Overrides Builder::XmlBase#tag! to format timestamps in ISO 8601 + def tag!(sym, *args, &block) if args.size == 1 && args.first.is_a?(::Time) - __send__ sym, args.first.xmlschema, &block + tag! sym, args.first.xmlschema, &block else super end |