Skip to content

Commit

Permalink
(MAINT) Standardize on UTC in Set-TimeZone (MicrosoftDocs#8690)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltlombardi authored Mar 24, 2022
1 parent 1f5e107 commit c755dee
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 55 deletions.
22 changes: 11 additions & 11 deletions reference/5.1/Microsoft.PowerShell.Management/Set-TimeZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 09/18/2019
ms.date: 03/24/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/set-timezone?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Set-TimeZone
Expand Down Expand Up @@ -40,27 +40,27 @@ The `Set-TimeZone` cmdlet sets the system time zone to a specified time zone.

### Example 1: Set the time zone by Id

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Id "Russian Standard Time" -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
```

```Output
Id : Russian Standard Time
DisplayName : (UTC+03:00) Moscow, St. Petersburg
StandardName : Russia TZ 2 Standard Time
DaylightName : Russia TZ 2 Daylight Time
BaseUtcOffset : 03:00:00
SupportsDaylightSavingTime : True
Id : UTC
DisplayName : (UTC) Coordinated Universal Time
StandardName : Coordinated Universal Time
DaylightName : Coordinated Universal Time
BaseUtcOffset : 00:00:00
SupportsDaylightSavingTime : False
```

### Example 2: Set the time zone by name

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Name "Russia TZ 2 Standard Time"
Set-TimeZone -Name "UTC"
```

As we saw in the previous example, the **Id** and the **Name** of the Time Zone do not always match.
Expand Down
22 changes: 11 additions & 11 deletions reference/7.0/Microsoft.PowerShell.Management/Set-TimeZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 09/18/2019
ms.date: 03/24/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/set-timezone?view=powershell-7&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Set-TimeZone
Expand Down Expand Up @@ -42,27 +42,27 @@ The `Set-TimeZone` cmdlet sets the system time zone to a specified time zone.

### Example 1: Set the time zone by Id

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Id "Russian Standard Time" -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
```

```Output
Id : Russian Standard Time
DisplayName : (UTC+03:00) Moscow, St. Petersburg
StandardName : Russia TZ 2 Standard Time
DaylightName : Russia TZ 2 Daylight Time
BaseUtcOffset : 03:00:00
SupportsDaylightSavingTime : True
Id : UTC
DisplayName : (UTC) Coordinated Universal Time
StandardName : Coordinated Universal Time
DaylightName : Coordinated Universal Time
BaseUtcOffset : 00:00:00
SupportsDaylightSavingTime : False
```

### Example 2: Set the time zone by name

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Name "Russia TZ 2 Standard Time"
Set-TimeZone -Name "UTC"
```

As we saw in the previous example, the **Id** and the **Name** of the Time Zone do not always match.
Expand Down
22 changes: 11 additions & 11 deletions reference/7.1/Microsoft.PowerShell.Management/Set-TimeZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 09/18/2019
ms.date: 03/24/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/set-timezone?view=powershell-7.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Set-TimeZone
Expand Down Expand Up @@ -42,27 +42,27 @@ The `Set-TimeZone` cmdlet sets the system time zone to a specified time zone.

### Example 1: Set the time zone by Id

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Id "Russian Standard Time" -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
```

```Output
Id : Russian Standard Time
DisplayName : (UTC+03:00) Moscow, St. Petersburg
StandardName : Russia TZ 2 Standard Time
DaylightName : Russia TZ 2 Daylight Time
BaseUtcOffset : 03:00:00
SupportsDaylightSavingTime : True
Id : UTC
DisplayName : (UTC) Coordinated Universal Time
StandardName : Coordinated Universal Time
DaylightName : Coordinated Universal Time
BaseUtcOffset : 00:00:00
SupportsDaylightSavingTime : False
```

### Example 2: Set the time zone by name

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Name "Russia TZ 2 Standard Time"
Set-TimeZone -Name "UTC"
```

As we saw in the previous example, the **Id** and the **Name** of the Time Zone do not always match.
Expand Down
23 changes: 12 additions & 11 deletions reference/7.2/Microsoft.PowerShell.Management/Set-TimeZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 09/18/2019
ms.date: 03/24/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/set-timezone?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Set-TimeZone
Expand Down Expand Up @@ -42,27 +42,28 @@ The `Set-TimeZone` cmdlet sets the system time zone to a specified time zone.

### Example 1: Set the time zone by Id

This example sets the time zone on the local computer to Central European Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Id "Central European Standard Time" -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
```

```Output
Id : Central European Standard Time
DisplayName : (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague
StandardName : Central Europe Standard Time
DaylightName : Central Europe Daylight Time
BaseUtcOffset : 01:00:00
SupportsDaylightSavingTime : True
Id : UTC
HasIanaId : True
DisplayName : (UTC) Coordinated Universal Time
StandardName : Coordinated Universal Time
DaylightName : Coordinated Universal Time
BaseUtcOffset : 00:00:00
SupportsDaylightSavingTime : False
```

### Example 2: Set the time zone by name

This example sets the time zone on the local computer to Central European Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Name "Central European Standard Time"
Set-TimeZone -Name "UTC"
```

As we saw in the previous example, the **Id** and the **Name** of the Time Zone do not always match.
Expand Down
23 changes: 12 additions & 11 deletions reference/7.3/Microsoft.PowerShell.Management/Set-TimeZone.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Management.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Management
ms.date: 09/18/2019
ms.date: 03/24/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.management/set-timezone?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Set-TimeZone
Expand Down Expand Up @@ -42,27 +42,28 @@ The `Set-TimeZone` cmdlet sets the system time zone to a specified time zone.

### Example 1: Set the time zone by Id

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Id "Russian Standard Time" -PassThru
Set-TimeZone -Name 'Coordinated Universal Time' -PassThru
```

```Output
Id : Russian Standard Time
DisplayName : (UTC+03:00) Moscow, St. Petersburg
StandardName : Russia TZ 2 Standard Time
DaylightName : Russia TZ 2 Daylight Time
BaseUtcOffset : 03:00:00
SupportsDaylightSavingTime : True
Id : UTC
HasIanaId : True
DisplayName : (UTC) Coordinated Universal Time
StandardName : Coordinated Universal Time
DaylightName : Coordinated Universal Time
BaseUtcOffset : 00:00:00
SupportsDaylightSavingTime : False
```

### Example 2: Set the time zone by name

This example sets the time zone on the local computer to Russian Standard Time.
This example sets the time zone on the local computer to UTC.

```powershell
Set-TimeZone -Name "Russia TZ 2 Standard Time"
Set-TimeZone -Name "UTC"
```

As we saw in the previous example, the **Id** and the **Name** of the Time Zone do not always match.
Expand Down

0 comments on commit c755dee

Please sign in to comment.