MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Microsoft change the custom timezone calendar string AGAIN.., calendar fails

Open sdetweil opened this issue 2 years ago • 5 comments

the old string was

"tzone://Microsoft/Custom"

the new string is

"Customized Time Zone"

temp fix is to edit node_modules/node_ical/ical.js and change

 if (tz === 'tzone://Microsoft/Custom' ){ 

to

if (tz === 'tzone://Microsoft/Custom' || tz==='Customized Time Zone') {

in two places

I opened issue against node_ical, and will provide pr over there.. no way to fix over here.. https://github.com/jens-maus/node-ical/issues/246

note there will be messages from node_ical cause of the bad timezone into moment()

[ERROR] Moment Timezone has no data for Customized Time Zone. See http://momentjs.com/timezone/docs/#/data-loading/.

sdetweil avatar Jan 17 '23 16:01 sdetweil

node-ical 0.17.0 contains the fix for this..

note, it also includes a new rrule, which removes the problematic luxon libs for recurring events..

I will try to test..

sdetweil avatar Nov 25 '23 23:11 sdetweil

note, it also includes a new rrule, which removes the problematic luxon libs for recurring events..

so we could get rid of our luxon dependency too?

rejas avatar Nov 26 '23 20:11 rejas

so we could get rid of our luxon dependency too?

I think so, if we update node-ical we can remove luxon

khassel avatar Nov 26 '23 20:11 khassel

@rejas yes, as it won't be used

sdetweil avatar Nov 26 '23 23:11 sdetweil

cool, will wait for your PR / confirmation :-)

rejas avatar Nov 27 '23 06:11 rejas

node-ical 0.17.0 contains the fix for this..

khassel avatar Jun 27 '24 21:06 khassel