aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ble/weather/WeatherService.cpp1
-rw-r--r--src/components/datetime/DateTimeController.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/components/ble/weather/WeatherService.cpp b/src/components/ble/weather/WeatherService.cpp
index e606d9bf..fd13f819 100644
--- a/src/components/ble/weather/WeatherService.cpp
+++ b/src/components/ble/weather/WeatherService.cpp
@@ -15,6 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#include <algorithm>
#include <qcbor/qcbor_spiffy_decode.h>
#include "WeatherService.h"
#include "libs/QCBOR/inc/qcbor/qcbor.h"
diff --git a/src/components/datetime/DateTimeController.h b/src/components/datetime/DateTimeController.h
index 8e3fa8ff..04c53bb8 100644
--- a/src/components/datetime/DateTimeController.h
+++ b/src/components/datetime/DateTimeController.h
@@ -67,6 +67,10 @@ namespace Pinetime {
return static_cast<Days>(daysSinceSunday);
}
+ uint8_t DayOfYear() const {
+ return localTime.tm_yday + 1;
+ }
+
uint8_t Hours() const {
return localTime.tm_hour;
}