chore: add tauri build config (#1717)

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Nathan.fooo
2023-01-17 21:54:25 +08:00
committed by GitHub
parent f64346c955
commit ceb39a4fd9
5 changed files with 69 additions and 46 deletions

View File

@ -120,7 +120,7 @@ mod tests {
#[test]
fn utc_to_native_test() {
let native_timestamp = 1647251762;
let native = NaiveDateTime::from_timestamp(native_timestamp, 0);
let native = NaiveDateTime::from_timestamp_opt(native_timestamp, 0).unwrap();
let utc = chrono::DateTime::<chrono::Utc>::from_utc(native, chrono::Utc);
// utc_timestamp doesn't carry timezone