Skip to content

Commit

Permalink
Fix weekday labels to avoid off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Nov 17, 2022
1 parent 2071a38 commit 900fe25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pywb/static/vue/vueui.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pywb/vueui/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class PywbI18N {
return decodeURIComponent(this.config[id+'_'+type])
}
getWeekDays(type='long') {
return ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'].map(d => this.getWeekDay(d, type));
return ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'].map(d => this.getWeekDay(d, type));
}
getText(id, embeddedVariableStrings=null) {
const translated = decodeURIComponent(this.config[id] || id);
Expand Down

0 comments on commit 900fe25

Please sign in to comment.