Thanks to visit codestin.com
Credit goes to github.com

Skip to content

applying salt.states.timezone module to windows machines #57754

@ewhitesides

Description

@ewhitesides

Description
salt.states.timezone.system produces an error when trying to set on windows systems

Setup
America/New_York:
timezone.system

-or-
America/New_York:
timezone.system:
- utc: True

Steps to Reproduce the behavior
applying either of the above as a state works correctly on linux.
applying either of the above as a state on Windows sets the timezone, but then it outputs as an error:

      ID: America/New_York
Function: timezone.system
  Result: False
 Comment: Failed to set UTC to True
 Started: 16:09:07.944704
Duration: 0.0 ms
 Changes:   

Expected behavior
expected behavior is that salt.states.timezone.system should succeed without errors on windows systems. perhaps the utc parameter should not apply to windows systems.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report
using 3000 and above for versions

Metadata

Metadata

Assignees

Labels

ConfirmedSalt engineer has confirmed bug/feature - often including a MCVEWindowsbugbroken, incorrect, or confusing behavior

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions