copr: shouldn't check invalid dates when using chunk format.
@@ -1073,9 +1073,7 @@ impl Time {
let timestamp = ctx.cfg.tz.from_utc_datetime(&utc.naive_utc());
Time::try_from_chrono_datetime(ctx, timestamp.naive_local(), time_type, fsp as i8)
} else {
- Time::new(
- ctx,
- TimeArgs {
+ Ok(Time::unchecked_new(TimeArgs {
year,
month,
day,
@@ -1085,8 +1083,7 @@ impl Time {
micro,
fsp: fsp as i8,
time_type,
- },
- )
+ }))
}
}
