We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0635ad commit 4190cefCopy full SHA for 4190cef
src/FsCheck/Arbitrary.fs
@@ -776,9 +776,9 @@ module Arb =
776
/// A DateTimeOffset is shrunk first by shrinking its offset, then by removing its second, minute and hour components.
777
static member DateTimeOffset() =
778
let genTimeZone = gen {
779
- let! hours = Gen.choose(-14, 14)
780
- let! minutes =
781
- if abs hours = 14 then
+ let! hours = Gen.choose(-12, 14)
+ let! minutes =
+ if hours = -12 || hours = 14 then
782
Gen.constant 0
783
else
784
Gen.choose(0, 59)
0 commit comments