sapling/mercurial/templates
Brodie Rao aabbd72d18 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
2011-10-27 11:57:08 -07:00
..
atom hgweb: add missing bookmarks templates to atom/rss styles 2011-04-03 22:53:19 +09:00
coal hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
gitweb hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
monoblue hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
paper hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
raw hgweb: add bookmarks listing to raw style with test case 2011-04-10 06:37:20 +09:00
rss hgweb: add missing bookmarks templates to atom/rss styles 2011-04-03 22:53:19 +09:00
spartan hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
static web: Output a correct date in short format (issue2902) 2011-07-15 10:18:24 +02:00
map-cmdline.bisect styles: add new 'bisect' style that prints the bisection status 2011-09-22 01:51:36 +02:00
map-cmdline.changelog setup: install translation files as package data 2009-12-01 16:06:10 +01:00
map-cmdline.compact compact style: show bookmarks in the same manner as tags 2011-04-13 13:06:35 -05:00
map-cmdline.default templates: add bookmarks to command line styles 2011-02-11 20:35:30 +01:00
map-cmdline.xml templates: add bookmarks to command line styles 2011-02-11 20:35:30 +01:00
template-vars.txt hgweb: support alternate logo url 2011-04-19 23:37:06 -04:00