Skip to content

Commit 7bb4415

Browse files
committed
Tweak last day of month summarization format.
1 parent dd108df commit 7bb4415

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

htdocs/js/utils.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ function summarize_event_timing(trigger, idx) {
106106
var result = '';
107107
switch (m_g1) {
108108
case '-1': result = 'last day'; break;
109-
case '-2': result = '2nd last'; break;
110-
case '-3': result = '3rd last'; break;
111-
case '-4': result = '4th last'; break;
112-
case '-5': result = '5th last'; break;
113-
case '-6': result = '6th last'; break;
114-
case '-7': result = '7th last'; break;
109+
case '-2': result = '2nd last day'; break;
110+
case '-3': result = '3rd last day'; break;
111+
case '-4': result = '4th last day'; break;
112+
case '-5': result = '5th last day'; break;
113+
case '-6': result = '6th last day'; break;
114+
case '-7': result = '7th last day'; break;
115115
default:
116116
if (m_g1.match(/^1[1-9]$/)) result = m_g1 + 'th'; // teens break the rule (11th, 12th, 13th, etc.)
117117
else result = m_g1 + _number_suffixes[ parseInt( m_g1.substring(m_g1.length - 1) ) ];

0 commit comments

Comments
 (0)