Skip to content

Commit bdab209

Browse files
authored
Update local_converter.cr
1 parent bf3a56d commit bdab209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema/ext/time/local_converter.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ struct Time
1717

1818
# Parse `Time` from an HTTP param as time timestamp.
1919
def self.from_http_param(value : String) : Time
20-
Time.parse(time, FORMAT)
20+
Time.parse(value, FORMAT, Time::Location::UTC)
2121
rescue ArgumentError
2222
raise TypeCastError.new
2323
end

0 commit comments

Comments
 (0)