# DateTime Internet Sync

Devices that do not have a current DateTime can experience issues with SSL/TLS handshakes whic will cause failures downloading DriverPacks over HTTPS. This issue typically occurs when a device has been disconnected from power for an extended period of time. Additionally, a DateTime that is not correctly set will impact Autopilot or Entra Join.

This feature will set the accurate internet DateTime, regardless of the WinPE TimeZone.

***

## OSDCloud Comparison

| Function            | Module       | Version  | Status      |
| ------------------- | ------------ | -------- | ----------- |
| **Deploy-OSDCloud** | **OSDCloud** | 26.3.4.2 | **Enabled** |
| Start-OSDCloud\*    | OSD          | -        | Not Planned |

## Feature

In WinPE, if the device is connected to the internet, OSDCloud will automatically sync the system clock to the Google's UTC DateTime if the difference is greater than 5 minutes.

In the screenshot below the Windows PowerShell Title Bar displays the existing DateTime. When `Sync-WinPEInternetDateTime` is automatically invoked by `Deploy-OSDCloud`, the device will be automatically set to the current internet DateTime using Set-Date.

{% hint style="info" %}
`Sync-WinPEInternetDateTime` is a private function in the OSDCloud PowerShell Module
{% endhint %}

<figure><img src="https://344220114-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVSV22dcsjKDdOxDA6n%2Fuploads%2FbPeTYf3k7mN2QrSuHGOw%2Fimage.png?alt=media&#x26;token=b1acf7e1-6e76-4452-b52b-b1328961e0ab" alt=""><figcaption></figcaption></figure>
