mirror of
https://github.com/samsonjs/strftime.git
synced 2026-04-27 14:57:37 +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
|
/// https://github.com/samsonjs/strftime
|
||||||
/// @_sjs
|
/// @_sjs
|
||||||
///
|
///
|
||||||
/// Copyright 2010 Sami Samhuri <sami.samhuri@gmail.com>
|
/// Copyright 2010 - 2011 Sami Samhuri <sami.samhuri@gmail.com>
|
||||||
/// MIT License
|
/// MIT License
|
||||||
|
|
||||||
;(function() {
|
;(function() {
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
}
|
}
|
||||||
d = d || new Date();
|
d = d || new Date();
|
||||||
locale = locale || DefaultLocale;
|
locale = locale || DefaultLocale;
|
||||||
|
locale.formats = locale.formats || {}
|
||||||
|
|
||||||
// Most of the specifiers supported by C's strftime
|
// Most of the specifiers supported by C's strftime
|
||||||
return fmt.replace(/%(.)/g, function(_, c) {
|
return fmt.replace(/%(.)/g, function(_, c) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue