summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/views/builders/xml.rb5
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