diff --git a/application/views/time.php b/application/views/time.php
index e42dcaa1..f9046117 100644
--- a/application/views/time.php
+++ b/application/views/time.php
@@ -14,8 +14,8 @@
- ,
+ ,
diff --git a/assets/js/time.js b/assets/js/time.js
index 792c8eff..770e4cb3 100644
--- a/assets/js/time.js
+++ b/assets/js/time.js
@@ -14,13 +14,23 @@ function getTime() {
'total': t,
'years':years,
'months':months,
- 'days': days,
+ 'days': days + "
" + nth(days) + "",
'hours': hours,
'minutes': minutes,
'seconds': seconds
};
}
+function nth(d) {
+ if(d>3 && d<21) return 'th';
+ switch (d % 10) {
+ case 1: return "st";
+ case 2: return "nd";
+ case 3: return "rd";
+ default: return "th";
+ }
+}
+
function initializeClock(id, endtime) {
var clock = document.getElementById(id);
var daysSpan = clock.querySelector('.days');