# Cannot login with 2fa after Daylight Saving Time change

**URL:** https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191
**Category:** Support
**Created:** [October 25, 2020, 7:21am UTC](https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191 "2020-10-25T07:21:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [October 25, 2020, 7:21am UTC](https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191/1 "2020-10-25T07:21:49Z")

</div>

After the Oct 25th DST change in Europe I’m unable to login via 2fA, the code is rejected with the message “Invalid authentication code. Each code can only be used once.”

Was able to login yesterday, nothing else changed in the meantime on the server or client, it seems the DST change in the client timestamp is not addressed correctly on the server.

Discourse version: da5841de0b  
Self hosted, [standard install](https://meta.discourse.org/t/142537?silent=true)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [October 25, 2020, 7:29am UTC](https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191/2 "2020-10-25T07:29:22Z")

</div>

If you’re using the Google Authenticator app, try going to Settings → Time correction for codes and pressing the “Sync now” option. Codes should be being generated with UTC, and unaffected by DST.

It’s possible your phone has an outdated tzdata, so can’t apply the correct timezone offset.

---

<div class="post-metadata">

### Author: ![md-misko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/md-misko/32/126315_2.png) [@md-misko](https://meta.discourse.org/u/md-misko)
#### Post date: [October 25, 2020, 7:37am UTC](https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191/3 "2020-10-25T07:37:31Z")

</div>

Thanks, this definitely is a phone/authenticator issue, it also fails on other 2fa enabled sites.

Will try your suggestions.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 24, 2020, 7:37am UTC](https://meta.discourse.org/t/cannot-login-with-2fa-after-daylight-saving-time-change/168191/4 "2020-11-24T07:37:38Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
