/venus

To download this project, use:
bzr branch http://golem.ph.utexas.edu/~distler/code/venus/

« back to all changes in this revision

Viewing changes to themes/asf/personalize.js

  • Committer: Sam Ruby
  • Date: 2008-09-04 14:00:11 UTC
  • Revision ID: rubys@intertwingly.net-20080904140011-49g67vqlo27yz2ie
Webkit dates

Show diffs side-by-side

added added

removed removed

162
162
 
163
163
  var local = date.toLocaleString();
164
164
  var match = local.match(localere);
165
 
  if (match) {
 
165
  if (match) { /* Firefox */
166
166
    element.innerHTML = match[4] + ' ' + match[5].toLowerCase();
167
167
    element.title = match[6] + " \u2014 " + 
168
168
      match[1] + ', ' + match[3] + ' ' + match[2];
169
169
    return days[date.getDay()] + ', ' + months[date.getMonth()] + ' ' +
170
170
      date.getDate() + ', ' + date.getFullYear();
171
171
  } else {
 
172
    local = local.replace(/GMT(-\d\d\d\d) \(.*\)$/, '$1'); /* Webkit */
172
173
    element.title = element.innerHTML + ' GMT';
173
174
    element.innerHTML = local;
174
175
    return days[date.getDay()] + ', ' + date.getDate() + ' ' +