Better date/time format for projects' last modified fields.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@308 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-03-16 20:55:01 +00:00
parent 1a8a236cdd
commit 999c18cae7

View File

@ -94,10 +94,10 @@ function formatDate(d) {
var today = Date.today();
var tomorrow = Date.today().add({ days: 1 });
if (d.between(today, tomorrow)) {
return "Today " + d.toString("HH:mm");
return "Today " + d.toString("h:mm tt");
} else if (d.between(yesterday, today)) {
return "Yesterday " + d.toString("HH:mm");
return "Yesterday " + d.toString("h:mm tt");
} else {
return d.toString("M-ddd-yyyy");
return d.toString("ddd, MMM d, yyyy");
}
}