diff --git a/spec/ameba/formatter/todo_formatter_spec.cr b/spec/ameba/formatter/todo_formatter_spec.cr index 6cbe034a..a352bab8 100644 --- a/spec/ameba/formatter/todo_formatter_spec.cr +++ b/spec/ameba/formatter/todo_formatter_spec.cr @@ -31,6 +31,10 @@ module Ameba create_todo.should contain "# This configuration file was generated by" end + it "creates a todo with UTC time" do + create_todo.should match /\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC/ + end + it "creates a todo with version" do create_todo.should contain "Ameba version #{VERSION}" end diff --git a/src/ameba/formatter/todo_formatter.cr b/src/ameba/formatter/todo_formatter.cr index f49a5f2b..857b42b6 100644 --- a/src/ameba/formatter/todo_formatter.cr +++ b/src/ameba/formatter/todo_formatter.cr @@ -41,7 +41,7 @@ module Ameba::Formatter private def header <<-HEADER # This configuration file was generated by `ameba --gen-config` - # on #{Time.now} using Ameba version #{VERSION}. + # on #{Time.utc_now} using Ameba version #{VERSION}. # The point is for the user to remove these configuration records # one by one as the reported problems are removed from the code base.