Fix invalid TimestampFormat being generated by custom/old date setting
New Behaviors: If you have a custom date setting, your TimestampFormat will not be set (you'll need to set it yourself). If you have a custom time setting and not a custom date setting, your TimestampFormat will end with your ShortTimeFormat.
This commit is contained in:
@@ -140,15 +140,19 @@ void setTimeDateFormats(const S8& tempTimeFormat, const S8& tempDateFormat)
|
||||
{
|
||||
short_time = "%R";
|
||||
long_time = "%T";
|
||||
timestamp += " %T";
|
||||
if (!timestamp.empty()) timestamp += " %T";
|
||||
}
|
||||
else
|
||||
{
|
||||
short_time = "%I:%M %p";
|
||||
long_time = "%I:%M:%S %p";
|
||||
timestamp += " %I:%M %p";
|
||||
if (!timestamp.empty()) timestamp += " %I:%M %p";
|
||||
}
|
||||
}
|
||||
else if (!timestamp.empty())
|
||||
{
|
||||
timestamp += ' ' + gSavedSettings.getString("ShortTimeFormat");
|
||||
}
|
||||
|
||||
if (!short_date.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user