Skip to content

Commit

Permalink
Add %z for timezone offset
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Sep 1, 2010
1 parent 1535bc5 commit e371ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/wheat/tools.js
Expand Up @@ -84,6 +84,8 @@ var Helpers = {
value = pad(date.getSeconds()); break;
case "%u": // milliseconds with leading zeroes
value = pad(date.getMilliseconds(), 3); break;
case "%z": // time zone offset
value = getTZOString(date.getTimezoneOffset()); break;
case "%%": // literal % sign
value = "\0%\0"; break;
default:
Expand Down

0 comments on commit e371ab2

Please sign in to comment.