From 83a937294fc13c0038e54d55b0fd487860e1d01a Mon Sep 17 00:00:00 2001 From: Gavriel Fleischer Date: Sun, 4 Jul 2021 10:52:09 +0300 Subject: [PATCH 1/2] fix sunrise when it's tomorrow --- source/DataFields.mc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/DataFields.mc b/source/DataFields.mc index 2f2cf216..514a347a 100644 --- a/source/DataFields.mc +++ b/source/DataFields.mc @@ -643,7 +643,7 @@ class DataFields extends Ui.Drawable { if (tomorrow) { now = now.add(new Time.Duration(24 * 60 * 60)); } - var d = Gregorian.info(Time.now(), Time.FORMAT_SHORT); + var d = Gregorian.info(now, Time.FORMAT_SHORT); var rad = Math.PI / 180.0d; var deg = 180.0d / Math.PI; From ad4bf28eacf9ce51619fdc05996fc3e41b98b1b5 Mon Sep 17 00:00:00 2001 From: Gavriel Fleischer Date: Sun, 4 Jul 2021 16:12:31 +0300 Subject: [PATCH 2/2] change a/p to am/pm --- resources-fr920xt/fonts/fonts.xml | 2 +- resources-rectangle-205x148/fonts/fonts.xml | 2 +- resources-rectangle-240x240/fonts/fonts.xml | 4 ++-- resources-round-208x208/fonts/fonts.xml | 2 +- resources-round-260x260/fonts/fonts.xml | 2 +- resources-round-280x280/fonts/fonts.xml | 2 +- resources-round-360x360/fonts/fonts.xml | 4 ++-- resources-round-390x390/fonts/fonts.xml | 4 ++-- resources-round-416x416/fonts/fonts.xml | 4 ++-- resources-small-time/fonts/fonts.xml | 2 +- resources/fonts/fonts.xml | 2 +- source/CrystalApp.mc | 4 ++-- 12 files changed, 17 insertions(+), 17 deletions(-) diff --git a/resources-fr920xt/fonts/fonts.xml b/resources-fr920xt/fonts/fonts.xml index 75736182..00bfc774 100644 --- a/resources-fr920xt/fonts/fonts.xml +++ b/resources-fr920xt/fonts/fonts.xml @@ -6,7 +6,7 @@ - + diff --git a/resources-rectangle-205x148/fonts/fonts.xml b/resources-rectangle-205x148/fonts/fonts.xml index dec28d6e..d059cccc 100644 --- a/resources-rectangle-205x148/fonts/fonts.xml +++ b/resources-rectangle-205x148/fonts/fonts.xml @@ -3,7 +3,7 @@ - + diff --git a/resources-rectangle-240x240/fonts/fonts.xml b/resources-rectangle-240x240/fonts/fonts.xml index 0e2c8c73..18e6b37f 100644 --- a/resources-rectangle-240x240/fonts/fonts.xml +++ b/resources-rectangle-240x240/fonts/fonts.xml @@ -2,7 +2,7 @@ - + @@ -14,7 +14,7 @@ - + diff --git a/resources-round-208x208/fonts/fonts.xml b/resources-round-208x208/fonts/fonts.xml index 5583da69..00b4c209 100644 --- a/resources-round-208x208/fonts/fonts.xml +++ b/resources-round-208x208/fonts/fonts.xml @@ -1,7 +1,7 @@ - + diff --git a/resources-round-260x260/fonts/fonts.xml b/resources-round-260x260/fonts/fonts.xml index 42f35466..edfa6a27 100644 --- a/resources-round-260x260/fonts/fonts.xml +++ b/resources-round-260x260/fonts/fonts.xml @@ -1,7 +1,7 @@ - + diff --git a/resources-round-280x280/fonts/fonts.xml b/resources-round-280x280/fonts/fonts.xml index 497b4c78..5461c939 100644 --- a/resources-round-280x280/fonts/fonts.xml +++ b/resources-round-280x280/fonts/fonts.xml @@ -1,7 +1,7 @@ - + diff --git a/resources-round-360x360/fonts/fonts.xml b/resources-round-360x360/fonts/fonts.xml index 9fba4349..f70b9c56 100644 --- a/resources-round-360x360/fonts/fonts.xml +++ b/resources-round-360x360/fonts/fonts.xml @@ -1,7 +1,7 @@ - + @@ -26,7 +26,7 @@ - + diff --git a/resources-round-390x390/fonts/fonts.xml b/resources-round-390x390/fonts/fonts.xml index 268d5e92..7922aae5 100644 --- a/resources-round-390x390/fonts/fonts.xml +++ b/resources-round-390x390/fonts/fonts.xml @@ -1,7 +1,7 @@ - + @@ -24,7 +24,7 @@ - + diff --git a/resources-round-416x416/fonts/fonts.xml b/resources-round-416x416/fonts/fonts.xml index 5541a4f7..704c73c4 100644 --- a/resources-round-416x416/fonts/fonts.xml +++ b/resources-round-416x416/fonts/fonts.xml @@ -1,7 +1,7 @@ - + @@ -25,7 +25,7 @@ - + diff --git a/resources-small-time/fonts/fonts.xml b/resources-small-time/fonts/fonts.xml index dc63011b..cc99236e 100644 --- a/resources-small-time/fonts/fonts.xml +++ b/resources-small-time/fonts/fonts.xml @@ -1,7 +1,7 @@ - + diff --git a/resources/fonts/fonts.xml b/resources/fonts/fonts.xml index 18a64842..2e194788 100644 --- a/resources/fonts/fonts.xml +++ b/resources/fonts/fonts.xml @@ -1,7 +1,7 @@ - + diff --git a/source/CrystalApp.mc b/source/CrystalApp.mc index 20d3a0a4..1f6ae4fb 100644 --- a/source/CrystalApp.mc +++ b/source/CrystalApp.mc @@ -238,14 +238,14 @@ class CrystalApp extends App.AppBase { if (hour > 12) { hour = hour - 12; } - amPm = "p"; + amPm = "pm"; } else { // #27 Ensure midnight is shown as 12, not 00. if (hour == 0) { hour = 12; } - amPm = "a"; + amPm = "am"; } }