Skip to content

Conversation

@tpwrules
Copy link

In some sandbox environments, the program may not have permission to access /etc/localtime or it may not exist.

Catch any exceptions accessing and parsing its value and return UTC by default to avoid crashing the program.

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

@codspeed-hq
Copy link

CodSpeed Performance Report

Merging #792 will not alter performance

Comparing tpwrules:darwin-error-handling (a4d98ce) with master (3e3fec6)

Summary

✅ 1 untouched benchmarks

In some sandbox environments, the program may not have permission to access /etc/localtime or it may not exist. Catch any exceptions accessing and parsing its value and return UTC by default to avoid crashing the program.
@tpwrulestpwrulesforce-pushed the darwin-error-handling branch from a4d98ce to ba57bedCompareJanuary 9, 2024 16:57
@tpwrules
Copy link
Author

Fixed formatting.

@SecrusSecrus added this to the Pendulum 3.2 milestone Apr 23, 2025
@tpwrules
Copy link
Author

Still interested in getting this merged.

Sign up for freeto 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.

2 participants

@tpwrules@Secrus