stuartridout / teamlink

TeamLink is a free Microsoft Teams Power App using Dataverse for Teams. It is a space where your team can share there whereabouts for the week ahead directly in Microsoft Teams. Users can select who they want to 'follow' and see the upcoming presences of or can view by site to see who is planning to be on site on that day. TeamLink allows you then to message to see if the person wants to meet up for a coffee ... all from the click of a button!
MIT License
50 stars 2 forks source link

TimezoneOffset error #14

Closed GarryPope closed 2 years ago

GarryPope commented 2 years ago

Hello @stuartridout,

Sorry, I have another issue.

I'm receiving an error of "Expected a valid date value as the parameter to "TimezoneOffset" function, received value: null."

This is happening when I'm trying to view My Site and see who will be in the office on those days. Image below:

Any ideas please? Thanks very much,

Garry

image

stuartridout commented 2 years ago

Hi Garry, I'm looking into this at the moment. I'd not seen this before but this is the second occurrence. I need to check if something has changed to cause this.

petepuu commented 2 years ago

Hi, that happens because there is no date selected by default i.e. datetime value = null. I would change it so that when you open the Site view then first day is selected

stuartridout commented 2 years ago

Thanks @petepuu - we can't select the first day as a site needs to be selected also, but there is a pending change to handle the error so it doesn't call that function until you click the site.

Hoping to get an update out in the next couple of days.

petepuu commented 2 years ago

@stuartridout you can set default for both galleries but I think it is better to not call that function until user selects site and day

stuartridout commented 2 years ago

This has now been fixed as part of the 1.0.0.18 release. See https://github.com/stuartridout/teamlink/releases/tag/v1.18-main