forked from FOSS/BangleApps
Fix time and date lines
parent
966452854e
commit
42947f27bc
|
@ -1,4 +1,5 @@
|
||||||
const storage = require("Storage");
|
const storage = require("Storage");
|
||||||
|
const locale = require('locale');
|
||||||
|
|
||||||
const SCREEN_WIDTH = g.getWidth();
|
const SCREEN_WIDTH = g.getWidth();
|
||||||
const SCREEN_HEIGHT = g.getHeight();
|
const SCREEN_HEIGHT = g.getHeight();
|
||||||
|
@ -125,11 +126,11 @@ function getBottomLines() {
|
||||||
const lines = [];
|
const lines = [];
|
||||||
|
|
||||||
if (settings.showTime) {
|
if (settings.showTime) {
|
||||||
lines.push(require("locale").time(date));
|
lines.push(locale.time(date, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.showDate) {
|
if (settings.showDate) {
|
||||||
lines.push(`${date.getHours()}:${String(date.getMinutes()).padStart(2, '0')}`);
|
lines.push(locale.date(date, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
return lines;
|
return lines;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "Dutch Clock",
|
"name": "Dutch Clock",
|
||||||
"shortName":"Dutch Clock",
|
"shortName":"Dutch Clock",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.09",
|
"version":"0.10",
|
||||||
"description": "A clock that displays the time the way a Dutch person would respond when asked what time it is.",
|
"description": "A clock that displays the time the way a Dutch person would respond when asked what time it is.",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock,dutch,text",
|
"tags": "clock,dutch,text",
|
||||||
|
|
Loading…
Reference in New Issue