app.js - bugfix: removed codefragement testdata "thursday"

added todo for locale "week"
master
Danny 2022-01-11 00:16:40 +01:00
parent 3e45811504
commit dcc4dc8e66
1 changed files with 1 additions and 2 deletions

View File

@ -188,9 +188,8 @@ function draw() {
g.drawString(dateStr, x, y); g.drawString(dateStr, x, y);
if (weekDay || calWeek) { if (weekDay || calWeek) {
var dowwumStr = require("locale").dow(date); var dowwumStr = require("locale").dow(date);
dowwumStr = "thursday";
if (calWeek) if (calWeek)
dowwumStr = (weekDay ? dowwumStr.substr(0,Math.min(dowwumStr.length,6)) + (dowwumStr.length>=6 ? "." : "") : "week ") + "#" + ISO8601calWeek(date); dowwumStr = (weekDay ? dowwumStr.substr(0,Math.min(dowwumStr.length,6)) + (dowwumStr.length>=6 ? "." : "") : "week ") + "#" + ISO8601calWeek(date); //TODO: locale for "week"
if (upperCase) if (upperCase)
dowwumStr = dowwumStr.toUpperCase(); dowwumStr = dowwumStr.toUpperCase();
g.drawString(dowwumStr, x, y + (vectorFont ? 26 : 16)); g.drawString(dowwumStr, x, y + (vectorFont ? 26 : 16));