hgweb: fix dynamic date calculation not working under Safari
While Chrome, Firefox, and IE 6+ support the current date format being passed to Date(), Safari doesn't: > new Date('Mon Oct 24 13:58:01 2011 +0200') Invalid Date However, the rfc822date format--officially supported by ECMAScript[1]--does work: > new Date('Mon, 24 Oct 2011 13:58:01 +0200') Mon Oct 24 2011 04:58:01 GMT-0700 (PDT) This change replaces all instances of {date|date} in HTML with {date|rfc822date}. For elements that only have the "age" class, there's no outward change for users with JavaScript enabled. For elements with both the "age" and "date" classes, the full date displayed uses the new format. Tested in IE 6, Safari 5.1.1, Google Chrome 15, and Firefox 7.0.1. [1]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
Showing
- mercurial/templates/coal/map 1 addition, 1 deletionmercurial/templates/coal/map
- mercurial/templates/gitweb/changelogentry.tmpl 1 addition, 1 deletionmercurial/templates/gitweb/changelogentry.tmpl
- mercurial/templates/gitweb/changeset.tmpl 1 addition, 1 deletionmercurial/templates/gitweb/changeset.tmpl
- mercurial/templates/gitweb/fileannotate.tmpl 1 addition, 1 deletionmercurial/templates/gitweb/fileannotate.tmpl
- mercurial/templates/gitweb/filerevision.tmpl 1 addition, 1 deletionmercurial/templates/gitweb/filerevision.tmpl
- mercurial/templates/gitweb/map 6 additions, 6 deletionsmercurial/templates/gitweb/map
- mercurial/templates/monoblue/changelogentry.tmpl 1 addition, 1 deletionmercurial/templates/monoblue/changelogentry.tmpl
- mercurial/templates/monoblue/changeset.tmpl 2 additions, 2 deletionsmercurial/templates/monoblue/changeset.tmpl
- mercurial/templates/monoblue/fileannotate.tmpl 2 additions, 2 deletionsmercurial/templates/monoblue/fileannotate.tmpl
- mercurial/templates/monoblue/filerevision.tmpl 2 additions, 2 deletionsmercurial/templates/monoblue/filerevision.tmpl
- mercurial/templates/monoblue/map 6 additions, 6 deletionsmercurial/templates/monoblue/map
- mercurial/templates/paper/changeset.tmpl 1 addition, 1 deletionmercurial/templates/paper/changeset.tmpl
- mercurial/templates/paper/fileannotate.tmpl 1 addition, 1 deletionmercurial/templates/paper/fileannotate.tmpl
- mercurial/templates/paper/filediff.tmpl 1 addition, 1 deletionmercurial/templates/paper/filediff.tmpl
- mercurial/templates/paper/filelogentry.tmpl 1 addition, 1 deletionmercurial/templates/paper/filelogentry.tmpl
- mercurial/templates/paper/filerevision.tmpl 1 addition, 1 deletionmercurial/templates/paper/filerevision.tmpl
- mercurial/templates/paper/map 1 addition, 1 deletionmercurial/templates/paper/map
- mercurial/templates/paper/shortlogentry.tmpl 1 addition, 1 deletionmercurial/templates/paper/shortlogentry.tmpl
- mercurial/templates/spartan/changelogentry.tmpl 2 additions, 2 deletionsmercurial/templates/spartan/changelogentry.tmpl
- mercurial/templates/spartan/changeset.tmpl 1 addition, 1 deletionmercurial/templates/spartan/changeset.tmpl
Loading
Please register or sign in to comment