Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other: Negative UTC offset in local environment results in banned IP "localhost" during account creation #1881

Open
2 of 7 tasks
szc126 opened this issue Jan 19, 2025 · 0 comments
Labels
bug/error Bugs and errors (timeout) complexity: unknown Unknown days of work globalization Globalization, internationalization, locales, timezones priority: low Issues/Tasks that are not so important

Comments

@szc126
Copy link
Collaborator

szc126 commented Jan 19, 2025

Website (required)

VocaDB

Describe the bug (required)

ran into some kind of miserable timezone problem at http://localhost:5000/User/Create

  • TZ='America/Juneau' dotnet run ... results in Suspicious registration form fill time (-08:59:50.9613057) from ::1. / Adding temp banned IP ::1 (calculated difference of negative 9 hours)
  • TZ='Atlantic/Azores' dotnet run ... results in Suspicious registration form fill time (-00:59:50.4225254) from ::1. / Adding temp banned IP ::1 (calculated difference of negative 1 hour)
  • (and similar messages under my own timezone, when I don't override TZ)

(TooFastRegistrationException is checking for differences of less than 2 seconds, it seems?)

not sure if this is a VocaDB problem or a dotnet problem? doesn't seem to be a browser problem (it happens in both Firefox and Chromium)

https://discord.com/channels/309072240639737866/1271565701601296506/1306522628051173467

Checklist (required)

Fill out the checklist. Use strikethroughs or leave fields empty if you don't know or are unable to check/test.

  • Searched VocaDB/vocadb for duplicate issues.
  • Tested on the beta site.
  • Tested on different browsers (e.g. Firefox, Chrome, Safari, Edge).
  • Checked in private mode.
  • Cleared browser cache and cookies.
  • Checked the DevTools console.
  • Checked the syslog (mods+ only).
@szc126 szc126 added the bug/error Bugs and errors (timeout) label Jan 19, 2025
@andreoda andreoda added globalization Globalization, internationalization, locales, timezones priority: low Issues/Tasks that are not so important complexity: unknown Unknown days of work labels Jan 27, 2025
@andreoda andreoda changed the title Negative UTC offset in local environment results in banned IP "localhost" during account creation Other: Negative UTC offset in local environment results in banned IP "localhost" during account creation Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/error Bugs and errors (timeout) complexity: unknown Unknown days of work globalization Globalization, internationalization, locales, timezones priority: low Issues/Tasks that are not so important
Projects
Development

No branches or pull requests

2 participants