Skip to content

Commit cc78c9c

Browse files
committed
Add a timezone TODO.
1 parent 404b3e4 commit cc78c9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/search_query_builder.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def construct_clause(parameters, context)
450450
when :date
451451
value.downcase!
452452
if ['now'].include?(value)
453+
# TODO(plural): Ensure all time zone handling is consistent.
453454
@value = Time.zone.now.strftime('%Y-%m-%d')
454455
elsif !value.match?(/\d{4}-\d{2}-\d{2}|\d{8}/)
455456
raise format(

0 commit comments

Comments
 (0)