diff --git a/API.md b/API.md index 8d3fba9..23bcf09 100644 --- a/API.md +++ b/API.md @@ -636,6 +636,10 @@ standard strftime specifiers are supported (plus the nonstandard %q): %w: weekday as number (0-6, 0 being Sunday) ``` +Flot 0.8 switched from %h to the standard %H hours specifier. The %h specifier +is still available, for backwards-compatibility, but is deprecated and +scheduled to be removed permanently with the release of version 1.0. + You can customize the month names with the "monthNames" option. For instance, for Danish you might specify: diff --git a/jquery.flot.time.js b/jquery.flot.time.js index c457ca5..15f5281 100644 --- a/jquery.flot.time.js +++ b/jquery.flot.time.js @@ -73,6 +73,7 @@ API.txt for details. case 'b': c = "" + monthNames[d.getMonth()]; break; case 'd': c = leftPad(d.getDate()); break; case 'e': c = leftPad(d.getDate(), " "); break; + case 'h': // For back-compat with 0.7; remove in 1.0 case 'H': c = leftPad(hours); break; case 'I': c = leftPad(hours12); break; case 'l': c = leftPad(hours12, " "); break;