shell icon indicating copy to clipboard operation
shell copied to clipboard

Calendar and Weather not updating.

Open dalpax opened this issue 1 year ago • 11 comments

Image

Strange!

dalpax avatar Jun 09 '25 06:06 dalpax

Strange indeed...

The calendar I have no idea about, maybe a locale issue. The weather updates when you open the dashboard and requires a network connection to work. Could you explain more about it not updating?

soramanew avatar Jun 09 '25 09:06 soramanew

Weather works and time works. Only the calendar is innacurate! In a UTC negative timezone.

dalpax avatar Jun 10 '25 05:06 dalpax

I think the weather is broken now because wttr.in now returns Unknown location; please try ....

https://github.com/chubin/wttr.in/issues/1093

Image

shinkuan avatar Jun 12 '25 18:06 shinkuan

Is this still happening? I switched to using lat/long pairs for the location so it should work now

soramanew avatar Jun 15 '25 14:06 soramanew

Location is fine. Calendar dates still off by a day. Thanks.

dalpax avatar Jun 16 '25 06:06 dalpax

Installed new update, still not fixed.

dalpax avatar Jun 21 '25 05:06 dalpax

Is this still happening? I switched to using lat/long pairs for the location so it should work now

@soramanew

Ah. And this was when weather/temp on my dashboard started showing the wrong info. It was working fine prior to the change.

nuknes avatar Jun 25 '25 16:06 nuknes

Image

Here's a snippet of what it's still showing for me.

dalpax avatar Jun 26 '25 05:06 dalpax

@dalpax Can you try this patch and check if it fixes it?

diff --git a/modules/dashboard/dash/Calendar.qml b/modules/dashboard/dash/Calendar.qml
index aacea8f..1860d9f 100644
--- a/modules/dashboard/dash/Calendar.qml
+++ b/modules/dashboard/dash/Calendar.qml
@@ -63,7 +63,7 @@ Column {
                     anchors.centerIn: parent
 
                     horizontalAlignment: Text.AlignHCenter
-                    text: grid.locale.toString(day.model.date, "d")
+                    text: Qt.formatDate(day.model.date, "d")
                     color: day.model.today ? Colours.palette.m3onPrimary : day.model.month === grid.month ? Colours.palette.m3onSurfaceVariant : Colours.palette.m3outline
                 }
             }

soramanew avatar Jun 26 '25 06:06 soramanew

Fixed!

Image

dalpax avatar Jun 26 '25 06:06 dalpax

Alright, pushed!

soramanew avatar Jun 26 '25 06:06 soramanew