mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 13:26:38 +03:00
let dc_timestamp_to_str() print the local time, not UTC times. the function is used for outputs directly shown to the user, eg. dc_get_msg_info()
This commit is contained in:
committed by
holger krekel
parent
85ebde29dc
commit
99ba2fb358
@@ -154,7 +154,7 @@ pub(crate) fn dc_timestamp_from_date(date_time: *mut mailimf_date_time) -> i64 {
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
pub fn dc_timestamp_to_str(wanted: i64) -> String {
|
pub fn dc_timestamp_to_str(wanted: i64) -> String {
|
||||||
let ts = chrono::Utc.timestamp(wanted, 0);
|
let ts = Local.timestamp(wanted, 0);
|
||||||
ts.format("%Y.%m.%d %H:%M:%S").to_string()
|
ts.format("%Y.%m.%d %H:%M:%S").to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user