1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

Fix for Time::formatted with empty strings.

This commit is contained in:
jules 2014-01-27 09:58:06 +00:00
parent 98bd1c55d3
commit 5765dbe670

View file

@ -110,7 +110,7 @@ namespace TimeHelpers
const size_t numChars = wcsftime (buffer, bufferSize - 1, format.toUTF32(), tm);
#endif
if (numChars > 0)
if (numChars > 0 || format.isEmpty())
return String (StringType (buffer),
StringType (buffer) + (int) numChars);
}