Skip to content

Commit fa2256c

Browse files
committed
Changed the way UTC dates are generated in some tests
1 parent ebd318c commit fa2256c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sentry/src/access.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,8 @@ mod test {
441441
};
442442
let mut channel = get_channel(rule);
443443
channel.spec.withdraw_period_start = Utc
444-
.datetime_from_str("1970-01-01 12:00:09", "%Y-%m-%d %H:%M:%S")
445-
.expect("should be valid datetime");
444+
.ymd(1970, 1, 1)
445+
.and_hms(12, 0, 9);
446446

447447
let ok_response = check_access(
448448
&redis,
@@ -664,8 +664,8 @@ mod test {
664664
};
665665
let mut channel = get_channel(rule);
666666
channel.spec.withdraw_period_start = Utc
667-
.datetime_from_str("1970-01-01 12:00:09", "%Y-%m-%d %H:%M:%S")
668-
.expect("should be valid datetime");
667+
.ymd(1970, 1, 1)
668+
.and_hms(12, 0, 9);
669669

670670
let err_response = check_access(
671671
&redis,

0 commit comments

Comments
 (0)