diff --git a/lib/index.js b/lib/index.js index 1364cd8..22f7855 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2,7 +2,7 @@ /// https://github.com/samsonjs/strftime /// @_sjs /// -/// Copyright 2010 Sami Samhuri +/// Copyright 2010 - 2011 Sami Samhuri /// 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) {