MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / cron_timezone_format_roundtrip

Function cron_timezone_format_roundtrip

nodedb/src/config/server/scheduler.rs:229–234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227
228 #[test]
229 fn cron_timezone_format_roundtrip() {
230 for s in ["+05:30", "-08:00", "+00:00", "+18:00", "-18:00", "+12:45"] {
231 let parsed = CronTimezone::parse(s).unwrap();
232 assert_eq!(parsed.as_string(), s, "roundtrip failed for '{s}'");
233 }
234 }
235
236 #[test]
237 fn cron_timezone_iana_rejected() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected