mirror of
https://github.com/ThisIsBenny/iOS-Widgets.git
synced 2025-06-06 21:47:40 +00:00
fix issue with remaining days
Signed-off-by: Benny Samir Hierl <bennysamir@posteo.de>
This commit is contained in:
parent
33e846b9c9
commit
1a138ccf26
1 changed files with 4 additions and 2 deletions
|
@ -3,9 +3,11 @@
|
||||||
// icon-color: red; icon-glyph: broadcast-tower;
|
// icon-color: red; icon-glyph: broadcast-tower;
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
Version 1.2.1
|
Version 1.2.2
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
v1.2.2:
|
||||||
|
- Fix remaining Day issue
|
||||||
v1.2.1:
|
v1.2.1:
|
||||||
- Code '40100' added for CallYa Tariff
|
- Code '40100' added for CallYa Tariff
|
||||||
v1.2.0:
|
v1.2.0:
|
||||||
|
@ -377,7 +379,7 @@ if (data !== undefined) {
|
||||||
// Remaining Days
|
// Remaining Days
|
||||||
if (data.endDate) {
|
if (data.endDate) {
|
||||||
widget.addSpacer(5)
|
widget.addSpacer(5)
|
||||||
let remainingDays = getTimeRemaining(data.endDate).days + 1
|
let remainingDays = getTimeRemaining(data.endDate).days + 2
|
||||||
let remainingDaysText = widget.addText(`${remainingDays} Tage verleibend`)
|
let remainingDaysText = widget.addText(`${remainingDays} Tage verleibend`)
|
||||||
remainingDaysText.font = Font.mediumSystemFont(8)
|
remainingDaysText.font = Font.mediumSystemFont(8)
|
||||||
remainingDaysText.centerAlignText()
|
remainingDaysText.centerAlignText()
|
||||||
|
|
Loading…
Add table
Reference in a new issue