rem: if (Date.parse(lastmod)) lastmodString = lastmod; 
add: if(Date.parse(lastmod)) { try { const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1"; const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat; var dateService = Components.classes[nsScriptableDateFormat_CONTRACTID] .getService(nsIScriptableDateFormat);  var lastModDate = new Date(); lastModDate.setTime(Date.parse(lastmod)); lastmodString =  dateService.FormatDateTime("", dateService.dateFormatLong, dateService.timeFormatSeconds, lastModDate.getFullYear(), lastModDate.getMonth()+1, lastModDate.getDate(), lastModDate.getHours(), lastModDate.getMinutes(), lastModDate.getSeconds()); } catch (e) {} } 
context: function Startup(){  if (!InitEditorShell())    return;  gDialog.PageLocation     = document.getElementById("PageLocation");  gDialog.TitleInput       = document.getElementById("TitleInput");  gDialog.AuthorInput      = document.getElementById("AuthorInput");  gDialog.DescriptionInput = document.getElementById("DescriptionInput");    // Default string for new page is set from DTD string in XUL,  //   so set only if not new doc URL  var location = GetDocumentUrl();  var lastmodString = GetString("Unknown");  if (!IsUrlAboutBlank(location))  {    // NEVER show username and password in clear text    gDialog.PageLocation.setAttribute("value", StripPassword(location));    // Get last-modified file date+time    // TODO: Convert this to local time?    var lastmod = editorShell.editorDocument.lastModified;  // get string of last modified date    // Convert modified string to date (0 = unknown date or January 1, 1970 GMT)    if (Date.parse(lastmod))      lastmodString = lastmod;  }  document.getElementById("PageModDate").setAttribute("value", lastmodString);  authorElement = GetMetaElement("author");  if (!authorElement)  {    authorElement = CreateMetaElement("author");    if (!authorElement)    {      window.close();      return;    }    insertNewAuthor = true;  }  descriptionElement = GetMetaElement("description");  if (!descriptionElement)  {    descriptionElement = CreateMetaElement("description");    if (!descriptionElement)      window.close();    insertNewDescription = true;  }    InitDialog();  SetTextboxFocus(gDialog.TitleInput);  SetWindowLocation();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3f18bfadd3209a92fe587b514f345f2205466a10/EdPageProps.js/clean/editor/ui/dialogs/content/EdPageProps.js