diff options
author | Phil Hughes <me@iamphill.com> | 2016-07-04 14:38:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-07-04 14:38:01 +0300 |
commit | a445630ff353bdd9c5be24ccfd3380c71d3901d1 (patch) | |
tree | 421f4643c89b122905b565292b42808a8e85338e /app/assets/javascripts/lib | |
parent | 021b6aef94b3398ab5603b4c11afd4c6d8432795 (diff) |
Added day name to contributions calendar
Closes #19367
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/datetime_utility.js.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/datetime_utility.js.coffee b/app/assets/javascripts/lib/utils/datetime_utility.js.coffee index 948d6dbf07e..178963fe0aa 100644 --- a/app/assets/javascripts/lib/utils/datetime_utility.js.coffee +++ b/app/assets/javascripts/lib/utils/datetime_utility.js.coffee @@ -2,10 +2,14 @@ w.gl ?= {} w.gl.utils ?= {} + w.gl.utils.days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] w.gl.utils.formatDate = (datetime) -> dateFormat(datetime, 'mmm d, yyyy h:MMtt Z') + w.gl.utils.getDayName = (date) -> + this.days[date.getDay()] + w.gl.utils.localTimeAgo = ($timeagoEls, setTimeago = true) -> $timeagoEls.each( -> $el = $(@) |