[log] Allow to use local timezone instead of UTC when writing logs (#269)

* Allow to use local timezone instead of UTC timezone when writing log

* Address PR feedback

* Fix cargo clippy

* revert `time` version

---------

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
This commit is contained in:
ngapham@kobiton.com
2023-03-06 21:31:28 +07:00
committed by GitHub
parent 1d52416f70
commit 6d7b985b46
3 changed files with 69 additions and 13 deletions
Generated
+20 -9
View File
@@ -2631,6 +2631,15 @@ dependencies = [
"syn",
]
[[package]]
name = "num_threads"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44"
dependencies = [
"libc",
]
[[package]]
name = "objc"
version = "0.2.7"
@@ -3020,7 +3029,7 @@ dependencies = [
"line-wrap",
"quick-xml",
"serde",
"time 0.3.17",
"time 0.3.20",
]
[[package]]
@@ -3901,7 +3910,7 @@ dependencies = [
"sqlx-rt",
"stringprep",
"thiserror",
"time 0.3.17",
"time 0.3.20",
"tokio-stream",
"url",
"webpki-roots",
@@ -4239,7 +4248,7 @@ dependencies = [
"sha2 0.10.6",
"tauri-utils",
"thiserror",
"time 0.3.17",
"time 0.3.20",
"uuid 1.3.0",
"walkdir",
]
@@ -4337,7 +4346,7 @@ dependencies = [
"serde_json",
"serde_repr",
"tauri",
"time 0.3.17",
"time 0.3.20",
]
[[package]]
@@ -4388,7 +4397,7 @@ dependencies = [
"sqlx",
"tauri",
"thiserror",
"time 0.3.17",
"time 0.3.20",
"tokio",
]
@@ -4614,11 +4623,13 @@ dependencies = [
[[package]]
name = "time"
version = "0.3.17"
version = "0.3.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376"
checksum = "cd0cbfecb4d19b5ea75bb31ad904eb5b9fa13f21079c3b92017ebdf4999a5890"
dependencies = [
"itoa 1.0.5",
"libc",
"num_threads",
"serde",
"time-core",
"time-macros",
@@ -4632,9 +4643,9 @@ checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd"
[[package]]
name = "time-macros"
version = "0.2.6"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e250477bc4ba16b2"
checksum = "fd80a657e71da814b8e5d60d3374fc6d35045062245d80224748ae522dd76f36"
dependencies = [
"time-core",
]