Skip to content

Commit

Permalink
Re-introduced the %h specifier for back-compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschnur committed Apr 21, 2013
1 parent 87f9c78 commit 24f70fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
1 change: 1 addition & 0 deletions jquery.flot.time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24f70fc

Please sign in to comment.