fix formats

This commit is contained in:
Sami Samhuri 2011-04-28 18:29:41 -07:00
parent da0563dda7
commit 507fadf8ca

View file

@ -2,7 +2,7 @@
/// https://github.com/samsonjs/strftime
/// @_sjs
///
/// Copyright 2010 Sami Samhuri <sami.samhuri@gmail.com>
/// Copyright 2010 - 2011 Sami Samhuri <sami.samhuri@gmail.com>
/// MIT License
;(function() {
@ -41,6 +41,7 @@
}
d = d || new Date();
locale = locale || DefaultLocale;
locale.formats = locale.formats || {}
// Most of the specifiers supported by C's strftime
return fmt.replace(/%(.)/g, function(_, c) {