Skip to content

Conversation

vieiraae
Copy link

Added Timezone parameter to allow configuration with the local timezone.

Added Timezone parameter to allow configuration with the local timezone.
@vascofolgado
Copy link

DO THIS:

Delete Line 65 and add:
$UTCTime = (Get-Date).ToUniversalTime()
$TZ = [System.TimeZoneInfo]::FindSystemTimeZoneById("GMT Standard Time")
$currentTime = [System.TimeZoneInfo]::ConvertTimeFromUtc($UTCTime, $TZ)
Delete Line 270 and add:
$UTCTime = (Get-Date).ToUniversalTime()
$TZ = [System.TimeZoneInfo]::FindSystemTimeZoneById("GMT Standard Time")
$currentTime = [System.TimeZoneInfo]::ConvertTimeFromUtc($UTCTime, $TZ)

This it for GMT timezone. To other check:
https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants