[gnome-maps] utils: Add seconds to prettyTime



commit e1c77955d08458f46d79cc4c68289900dc9a2381
Author: Jonas Danielsson <jonas threetimestwo org>
Date:   Tue Jan 6 15:04:39 2015 +0100

    utils: Add seconds to prettyTime

 src/utils.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index 651966b..9286152 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -355,6 +355,8 @@ function prettyTime(time) {
         labelledTime += _("%f h").format(hours)+' ';
     if (minutes > 0)
         labelledTime += _("%f min").format(minutes);
+    if (hours === 0 && minutes === 0)
+        labelledTime = _("%f s").format(seconds);
     return labelledTime;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]