test/layouts/test_json.rb in logging-1.6.1 vs test/layouts/test_json.rb in logging-1.6.2
- old
+ new
@@ -9,10 +9,10 @@
def setup
super
@layout = Logging.layouts.json({})
@levels = Logging::LEVELS
- @date_fmt = '\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}'
+ @date_fmt = '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}(Z|[+-]\d{2}:\d{2})'
Thread.current[:name] = nil
end
def test_initializer
assert_raise(ArgumentError) {