mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: make parse_iso8601 support a date only format (#7277)
This commit is contained in:
@ -25,9 +25,7 @@ fn test_is_leap_year() {
|
||||
}
|
||||
|
||||
fn check_days_in_month(month int, year int, expected int) bool {
|
||||
res := time.days_in_month(month, year) or {
|
||||
return false
|
||||
}
|
||||
res := time.days_in_month(month, year) or { return false }
|
||||
return res == expected
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user