lib/inforouter/responses/base.rb in inforouter-0.2.7 vs lib/inforouter/responses/base.rb in inforouter-0.2.8

- old
+ new

@@ -56,10 +56,10 @@ # @param date [String] # # @return [DateTime] def parse_datetime(date) - DateTime.strptime(date, '%Y-%m-%d %H:%M:%S') + DateTime.strptime("#{date} #{DateTime.now.zone}", "%Y-%m-%d %H:%M:%S %Z") rescue ArgumentError nil end end