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;
|
||||
|
||||
/**************
|
||||
Version 1.2.1
|
||||
Version 1.2.2
|
||||
|
||||
Changelog:
|
||||
v1.2.2:
|
||||
- Fix remaining Day issue
|
||||
v1.2.1:
|
||||
- Code '40100' added for CallYa Tariff
|
||||
v1.2.0:
|
||||
|
@ -377,7 +379,7 @@ if (data !== undefined) {
|
|||
// Remaining Days
|
||||
if (data.endDate) {
|
||||
widget.addSpacer(5)
|
||||
let remainingDays = getTimeRemaining(data.endDate).days + 1
|
||||
let remainingDays = getTimeRemaining(data.endDate).days + 2
|
||||
let remainingDaysText = widget.addText(`${remainingDays} Tage verleibend`)
|
||||
remainingDaysText.font = Font.mediumSystemFont(8)
|
||||
remainingDaysText.centerAlignText()
|
||||
|
|
Loading…
Add table
Reference in a new issue