From 507fadf8ca11c0e512fca98c6e5b667fab5361c5 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Thu, 28 Apr 2011 18:29:41 -0700 Subject: [PATCH] fix formats --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {