feat: remove duplicate day in calendar
Remove duplicated day in calendar when format setting is 'dd MMM'master
parent
d1fc9abf27
commit
0574647e60
|
|
@ -1,4 +1,5 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: added settings options to change date format
|
0.02: added settings options to change date format
|
||||||
0.03: Remove un-needed font requirement, now outputs transparent image
|
0.03: Remove un-needed font requirement, now outputs transparent image
|
||||||
0.04: Fix image after 0.03 regression
|
0.04: Fix image after 0.03 regression
|
||||||
|
0.05: Remove duplicated day in calendar when format setting is 'dd MMM'
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
var getDateString = function(dt) {
|
var getDateString = function(dt) {
|
||||||
switch(settings.fmt) {
|
switch(settings.fmt) {
|
||||||
case "dd MMM":
|
case "dd MMM":
|
||||||
return '' + dt.getDate() + ' ' + require("locale").month(dt,1).toUpperCase();
|
return require("locale").month(dt,1).toUpperCase();
|
||||||
case "DDD dd":
|
case "DDD dd":
|
||||||
return require("locale").dow(dt,1).toUpperCase() + ' ' + dt.getDate();
|
return require("locale").dow(dt,1).toUpperCase() + ' ' + dt.getDate();
|
||||||
default: // DDD
|
default: // DDD
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{ "id": "clkinfocal",
|
{ "id": "clkinfocal",
|
||||||
"name": "Calendar Clockinfo",
|
"name": "Calendar Clockinfo",
|
||||||
"version":"0.04",
|
"version":"0.05",
|
||||||
"description": "For clocks that display 'clockinfo' (messages that can be cycled through using the clock_info module) this displays the day of the month in the icon, and the weekday. There is also a settings menu to select the format of the text",
|
"description": "For clocks that display 'clockinfo' (messages that can be cycled through using the clock_info module) this displays the day of the month in the icon, and the weekday. There is also a settings menu to select the format of the text",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"screenshots": [{"url":"screenshot.png"}],
|
"screenshots": [{"url":"screenshot.png"}],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue