fix error for datetime newoffset
This commit is contained in:
parent
0495a4af16
commit
cc95469a1f
|
@ -35,7 +35,7 @@ class RulingWeatherSetting
|
|||
res
|
||||
end
|
||||
def get_now_info(custom_location=nil,custom_dataid=nil,custom_observatory_name=nil)
|
||||
time_now = DateTime.now.utc.new_offset(self.time_offset)
|
||||
time_now = DateTime.now.new_offset(self.time_offset)
|
||||
today = time_now.strftime("%Y-%m-%d")
|
||||
host = "https://opendata.cwb.gov.tw"
|
||||
custom_dataid = custom_dataid || self.dataid
|
||||
|
|
Loading…
Reference in New Issue