Google TwoFA 生成错误代码,同步时间服务器

Google TwoFA generating incorrect codes, synced time servers

http://www.codeproject.com/Articles/403355/Implementing-Two-Factor-Authentication-in-ASP-NET?fid=1731001

使用上面的源代码。

使用 ASP.NET 形式,C#

出于某种原因,生成的代码与我 phone(s) 上的代码不匹配,一个 phone 与计算机时间同步不佳,但另一个是。即使检查 3 任何一方仍然有这个问题。

有什么想法吗?

在我将其添加到 Web.Config 的 <configuration> 部分后它起作用了:

<globalization culture="en-GB" uiCulture="en-GB" />