From 2109be7bbaef702a1e1d3505c5abb4354482ced0 Mon Sep 17 00:00:00 2001 From: Dzmitry Plashchynski Date: Thu, 5 Mar 2015 14:52:56 +0200 Subject: [PATCH] Fix time formating --- lib/crono/period.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crono/period.rb b/lib/crono/period.rb index 378e071..4832ab2 100644 --- a/lib/crono/period.rb +++ b/lib/crono/period.rb @@ -12,7 +12,7 @@ module Crono def description desc = "every #{@period.inspect}" - desc += " at #{@at_hour}:#{@at_min}" if @at_hour && @at_min + desc += " at %.2i:%.2i" % [@at_hour, @at_min] if @at_hour && @at_min desc end