[gnome-ostree] repoweb: Show "a moment ago" instead of time format error
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] repoweb: Show "a moment ago" instead of time format error
- Date: Sun, 21 Oct 2012 14:50:37 +0000 (UTC)
commit 9a3f460ee58cd4c36def5a52fb02e9efc635ec18
Author: Colin Walters <walters verbum org>
Date: Sun Oct 21 10:49:14 2012 -0400
repoweb: Show "a moment ago" instead of time format error
We don't want to show an error if there's just a small clock
desynchronization. And if there's a large one, oh well.
qa/repoweb/repoweb.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/qa/repoweb/repoweb.js b/qa/repoweb/repoweb.js
index 4444fd8..1ef195d 100644
--- a/qa/repoweb/repoweb.js
+++ b/qa/repoweb/repoweb.js
@@ -47,7 +47,7 @@ function repoweb_init() {
function timeago(d, now) {
var diffSeconds = (now.getTime() - d.getTime()) / 1000;
if (diffSeconds < 0)
- return "(time format error)";
+ return "a moment ago";
var units = [["seconds", 60],
["minutes", 60*60],
["hours", 60*60*24],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]