mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Use ISO8601 for chatlogs
For both 1:1 and groupchat.
This commit is contained in:
parent
066df7f741
commit
534ed34d73
@ -463,7 +463,7 @@ _chat_log_chat(const char* const login, const char* const other, const char* con
|
|||||||
g_date_time_ref(timestamp);
|
g_date_time_ref(timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
gchar* date_fmt = g_date_time_format(timestamp, "%H:%M:%S");
|
gchar* date_fmt = g_date_time_format_iso8601(timestamp);
|
||||||
FILE* chatlogp = fopen(dated_log->filename, "a");
|
FILE* chatlogp = fopen(dated_log->filename, "a");
|
||||||
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
||||||
if (chatlogp) {
|
if (chatlogp) {
|
||||||
@ -576,7 +576,7 @@ _groupchat_log_chat(const gchar* const login, const gchar* const room, const gch
|
|||||||
|
|
||||||
GDateTime* dt_tmp = g_date_time_new_now_local();
|
GDateTime* dt_tmp = g_date_time_new_now_local();
|
||||||
|
|
||||||
gchar* date_fmt = g_date_time_format(dt_tmp, "%H:%M:%S");
|
gchar* date_fmt = g_date_time_format_iso8601(dt_tmp);
|
||||||
|
|
||||||
FILE* grpchatlogp = fopen(dated_log->filename, "a");
|
FILE* grpchatlogp = fopen(dated_log->filename, "a");
|
||||||
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
g_chmod(dated_log->filename, S_IRUSR | S_IWUSR);
|
||||||
|
Loading…
Reference in New Issue
Block a user