Refine date comparison (timezones)

This commit is contained in:
Stefan Schlott 2015-02-19 23:01:23 +01:00
parent 537178d991
commit c2f1975499
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ def calculate_to_dates()
end
def conv_tz(t)
if (t.utc?)
if (t && t.class.method_defined?(:utc) && t.utc?)
Time.local(t.year, t.month, t.day, t.hour, t.min, t.sec)
else
t