Skip to content

Conversation

@mortenpi
Copy link
Member

Setting _LOCAL_TZ in __init__ adds a 100-200ms lag to doing using JuliaHub. Without it, loading the JuliaHub module becomes effectively instantaneous.

There is a theoretical behavior change here, where if you change ENV["TZ"] at the right place, you could potentially be using a different timezone. So I added a call to _localtz in _authenticate, to ensure that we set the global as soon as the user does basically anything with JuliaHub.jl.

@mortenpi mortenpi requested a review from pfitzseb March 26, 2025 02:09
@mortenpi mortenpi enabled auto-merge (squash) March 26, 2025 02:09
@semgrep-code-juliacomputing-new

Semgrep found 1 no-implicit-return finding:

Block-form functions should explicity return a value. If no meaningful
value is returned, explicity write return nothing instead.

@mortenpi mortenpi merged commit 8963f09 into main Mar 26, 2025
13 checks passed
@mortenpi mortenpi deleted the mp/no-tz-init branch March 26, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants