Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TeamsUpdateManagementPolicy] Resource does not handle the UpdateTimeOfDay property properly #5424

Closed
ykuijs opened this issue Nov 19, 2024 · 1 comment · Fixed by #5425 or #5435
Closed
Assignees
Labels
Bug Something isn't working Teams

Comments

@ykuijs
Copy link
Member

ykuijs commented Nov 19, 2024

Description of the issue

The UpdateTimeOfDay property is a DateTime object, which means that the output is depending on the culture of the agent. the comparison is done by comparing strings.

So when you provide a 24h format date and the culture is US, the resource is not in the desired state because the two values do not match.

Microsoft 365 DSC Version

Dev

Which workloads are affected

Teams

The DSC configuration

Verbose logs showing the problem

<ParametersNotInDesiredState>
    <Param Name="UpdateTimeOfDay"><CurrentValue>18:00</CurrentValue><DesiredValue>6:00 PM</DesiredValue></Param>
</ParametersNotInDesiredState>

Environment Information + PowerShell Version

@ykuijs
Copy link
Member Author

ykuijs commented Nov 19, 2024

Working on it!

@ykuijs ykuijs self-assigned this Nov 19, 2024
@ykuijs ykuijs added Bug Something isn't working Teams labels Nov 19, 2024
ykuijs added a commit to ykuijs/Microsoft365DSC that referenced this issue Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Teams
Projects
None yet
1 participant