Page MenuHomeFreeBSD

Recognize timezones on FreeBSD for the default install.
ClosedPublic

Authored by jhb on Jun 13 2018, 3:50 PM.
Tags
None
Referenced Files
F153344038: D15792.id43717.diff
Mon, Apr 20, 2:41 PM
Unknown Object (File)
Mon, Apr 13, 6:01 PM
Unknown Object (File)
Sat, Apr 11, 11:07 PM
Unknown Object (File)
Tue, Mar 31, 6:08 PM
Unknown Object (File)
Mon, Mar 30, 9:35 AM
Unknown Object (File)
Tue, Mar 24, 2:50 PM
Unknown Object (File)
Mon, Mar 23, 7:42 PM
Unknown Object (File)
Mon, Mar 23, 4:06 AM
Subscribers

Details

Summary

By default, FreeBSD copies the current timezone database to /etc/localtime
and stores the name of the symlink in /var/db/zoneinfo. Qt expects
/etc/localtime to be a symlink and uses the symlink's target to infer the
name of the default timezone. The existing code in Qt includes some
workarounds for Linux distributions that also copy the current timezone to
/etc/localtime by checking for files that contain the name of the timezone.
Add a similar check for /var/db/zoneinfo on FreeBSD.

PR: 200763

Test Plan
  • this fixes the clock in the panel to correctly honor the default timezone when /etc/localtime is a regular file

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17236
Build 17079: arc lint + arc unit

Event Timeline

I had a similar patch prepared but seem to have forgotten about it :)

This revision is now accepted and ready to land.Jun 13 2018, 4:10 PM
This revision was automatically updated to reflect the committed changes.