linuxclock - Bugfix Add 1 to month received from Date.getMonth (0..11)

pull/3218/head
signaleleven 2024-02-28 09:47:26 +01:00
parent 1f2179535a
commit 2063cca87f
3 changed files with 3 additions and 2 deletions

View File

@ -3,3 +3,4 @@
0.03: Update clock_info to avoid a redraw
0.04: Fix clkinfo -- use .get instead of .show
0.05: Use clock_info module as an app
0.06: Fix month in date (jan 0 -> 1, etc)

View File

@ -112,7 +112,7 @@ function getTime(){
function getDate(){
var date = new Date();
return twoD(date.getDate()) + "." + twoD(date.getMonth());
return twoD(date.getDate()) + "." + twoD(date.getMonth() + 1);
}
function getDay(){

View File

@ -1,7 +1,7 @@
{
"id": "linuxclock",
"name": "Linux Clock",
"version": "0.05",
"version": "0.06",
"description": "A Linux inspired clock.",
"readme": "README.md",
"icon": "app.png",