Merge branch 'xMAC94x/update' into 'master'

run cargo update

See merge request veloren/veloren!4308
This commit is contained in:
Marcel 2024-02-06 18:08:26 +00:00
commit 9af1c4c310
2 changed files with 1031 additions and 866 deletions

1894
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,8 @@ impl Calendar {
let now = match tz {
Some(tz) => {
let utc = Utc::now().naive_utc();
DateTime::<Tz>::from_utc(utc, tz.offset_from_utc_datetime(&utc)).naive_local()
DateTime::<Tz>::from_naive_utc_and_offset(utc, tz.offset_from_utc_datetime(&utc))
.naive_local()
},
None => Local::now().naive_local(),
};