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:
parent
1a8a236cdd
commit
999c18cae7
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user