This commit is contained in:
BoHung Chiu 2021-10-05 21:58:43 +08:00
parent d78aab6408
commit 5fa2811cbe
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class PHire
end
events
end
def convert_datetime(time)
def self.convert_datetime(time)
if time.class == Time
return time.to_datetime
elsif time.class == DateTime