# Changing Device date/time

## Introduction

The connector can only work when the device date/time is correctly set. This is due to the security applied on exchanged tokens and keys.&#x20;

When a connector has been installed on a device, at a moment which is in the past (other day/time), this results in the connector not working, even though the date/time has been set correctly on the system (post-installation).&#x20;

### Solution

To solve this problem the followin steps need to be executed:

* remove all device related keys
* restart the connector

#### Windows

Go to the installation folder of the connector:

`%localappdata%/Trust1Connector`

Delete all security relate files (selected below):

<figure><img src="/files/oPV02qo82oDDEs487r7q" alt=""><figcaption><p>connector installation folder Windows</p></figcaption></figure>

Those files are:

* device.priv
* device.pub
* device\_der.priv
* device\_der.pub
* device\_x509\_der.pub
* ds-ssl.json
* ds-txs.bck

{% hint style="info" %}
Those files will be automatically generated by the connector after the next step
{% endhint %}

Restart the connector by executing the **`'t1c-launch'`**

The process will be stopped, and restarted. The 't1c-launch' process must stop running, and the new processes will trigger the re-generation of the new keys.&#x20;

Due to this action, the device performs a new registration to the Distribution service, this can be verified in the **api.log** file (in the /Logs folder)

#### Mac OSX

Go to the installation folder of the connector:

`cd ~/Library/Application\ Support/Trust1Team/Trust1Connector/`

Open the folder in finder:

`open .`

Delete all security relate files (selected below):

<figure><img src="/files/bTAzartNYvdrDJp7dyuD" alt=""><figcaption><p>connection installation folder Mac OSX</p></figcaption></figure>

Those files are:

* device.priv
* device.pub
* device\_der.priv
* device\_der.pub
* device\_x509\_der.pub
* ds-ssl.json
* ds-txs.bck

{% hint style="info" %}
Those files will be automatically generated by the connector after the next step
{% endhint %}

Use the terminal to open the connector installation folder:

`cd ~/Library/Application\ Support/Trust1Team/Trust1Connector`

Execute the t1c-launch to restart

`./t1c-launch --restart`

The process will be stopped, and restarted. The 't1c-launch' process must stop running, and the new processes will trigger the re-generation of the new keys.&#x20;

Due to this action, the device performs a new registration to the Distribution service, this can be verified in the **api.log** file (in the /Logs folder)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://t1t.gitbook.io/t1c-js-guide-v3/3.7.x/miscellaneous/troubleshooting/changing-device-date-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
