We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebd318c commit fa2256cCopy full SHA for fa2256c
sentry/src/access.rs
@@ -441,8 +441,8 @@ mod test {
441
};
442
let mut channel = get_channel(rule);
443
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");
+ .ymd(1970, 1, 1)
+ .and_hms(12, 0, 9);
446
447
let ok_response = check_access(
448
&redis,
@@ -664,8 +664,8 @@ mod test {
664
665
666
667
668
669
670
let err_response = check_access(
671
0 commit comments