Skip to content

Commit d3449fe

Browse files
committed
test: explicitly use UTC timezone in tests
1 parent 02843ad commit d3449fe

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎rust/crates/ccusage/src/adapter/opencode/parser.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ mod tests {
442442

443443
#[test]
444444
fn snapshots_message_to_entry_variants_and_model_candidates() {
445+
let tz = crate::parse_tz(Some("UTC"));
445446
let mut pricing = PricingMap::default();
446447
pricing.load_json(
447448
r#"{
@@ -469,7 +470,7 @@ mod tests {
469470
})),
470471
None,
471472
None,
472-
None,
473+
tz.as_ref(),
473474
CostMode::Auto,
474475
Some(&pricing),
475476
)
@@ -485,7 +486,7 @@ mod tests {
485486
})),
486487
None,
487488
Some("explicit-session".to_string()),
488-
None,
489+
tz.as_ref(),
489490
CostMode::Display,
490491
None,
491492
)

‎rust/crates/ccusage/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ mod tests {
542542
let report = adapter::codex::report_json(
543543
&events,
544544
AgentReportKind::Daily,
545-
None,
545+
Some("UTC"),
546546
&pricing,
547547
cli::CodexSpeed::Standard,
548548
)

0 commit comments

Comments
 (0)