Skip to content

Commit

Permalink
Improve test for toRfcDate
Browse files Browse the repository at this point in the history
  • Loading branch information
CleverSource committed Dec 23, 2024
1 parent 92acaca commit 3f09531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/datetime/toRfcDate.luau
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ if not tzHour or not tzMinute then
error("Failed to extract timezone components from RFC 2822 date string")
end

assert(tzHour and tonumber(tzHour) and tonumber(tzHour) <= 14, "Timezone hour offset must be between -14 and +14")
assert(tzHour and tonumber(tzHour) >= -14 and tonumber(tzHour) <= 14, "Timezone hour offset must be between -14 and +14")
assert(tzMinute and tonumber(tzMinute) >= 0 and tonumber(tzMinute) < 60, "Timezone minute offset must be between 0 and 59")

0 comments on commit 3f09531

Please sign in to comment.