ZString.Format with "Custom date and time format strings" | Unity
azuma560 opened this issue · 1 comments
azuma560 commented
ZString:2.1.1
Unity:2018.4.17f1
There is a difference in output from string.Format
.
TimeSpan span = new TimeSpan(12,34,56);
Debug.Log($"string.Format: {string.Format(@"{0:hh\:mm\:ss}", span)}");
Debug.Log($"ZString.Format: {ZString.Format(@"{0:hh\:mm\:ss}", span)}");
string.Format: 12:34:56
ZString.Format: 56
neuecc commented
thanks, 2.1.1 could not handle escape character correctly.
I've released 2.1.2
, which includes this fix.
Please try it.