Support literal percent sign

By the spec for strftime(3), '%%' in the format string should be replaced with '%' in the resultString.
This commit is contained in:
Kevin Jin 2015-09-27 11:03:32 -04:00
parent 72a2f418c8
commit 58f5c3fee8

View file

@ -227,6 +227,12 @@
// Examples for new Date(0) in GMT
// '%'
// case '%':
case 37:
resultString += '%';
break;
// 'Thursday'
// case 'A':
case 65: