Skip to content
Snippets Groups Projects
Commit 7795f415 authored by rswindell's avatar rswindell
Browse files

Use the same .ini style settings for user_set_time_property().

parent 61f69c67
No related branches found
No related tags found
No related merge requests found
......@@ -3318,7 +3318,8 @@ BOOL DLLCALL user_set_time_property(scfg_t* scfg, unsigned user_number, const ch
if(fp == NULL)
return FALSE;
ini = iniReadFile(fp);
char* result = iniSetDateTime(&ini, section, key, /* include_time */TRUE, value, /* style */NULL);
ini_style_t ini_style = { .key_prefix = "\t", .section_separator = "", .value_separator = " = " };
char* result = iniSetDateTime(&ini, section, key, /* include_time */TRUE, value, &ini_style);
iniWriteFile(fp, ini);
iniFreeStringList(ini);
iniCloseFile(fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment