mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
fix formats
This commit is contained in:
parent
da0563dda7
commit
507fadf8ca
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue