From 8ba1f03a71245cb4293ef36a2422581ab34bbbe9 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Mon, 16 Mar 2015 18:02:34 -0700 Subject: [PATCH] warn about possible misuse of %:: or %::: modifiers --- strftime.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/strftime.js b/strftime.js index 67651c2..e20e4c1 100644 --- a/strftime.js +++ b/strftime.js @@ -211,6 +211,11 @@ } // ':' else if (currentCharCode === 58) { + if (extendedTZ) { + if (typeof console !== 'undefined' && typeof console.warn == 'function') { + console.warn("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"); + } + } extendedTZ = true; continue; }