From aff1807a359d4a24c4f8d749ce5a3e73a22af120 Mon Sep 17 00:00:00 2001 From: bohung Date: Mon, 8 Mar 2021 19:36:46 +0800 Subject: [PATCH] Fix bug. --- template_generator/app/helpers/admin/plugin_templates_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/template_generator/app/helpers/admin/plugin_templates_helper.rb b/template_generator/app/helpers/admin/plugin_templates_helper.rb index 9cf82c4..546977d 100644 --- a/template_generator/app/helpers/admin/plugin_templates_helper.rb +++ b/template_generator/app/helpers/admin/plugin_templates_helper.rb @@ -7,6 +7,7 @@ module Admin::PluginTemplatesHelper end def time_iterate(start_time, end_time, step, &block) begin + start_time = start_time.to_date if end_time.class == Date yield(start_time) end while (start_time += step) <= end_time end