Refine date comparison (timezones)
This commit is contained in:
parent
537178d991
commit
c2f1975499
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue