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

on unix systems, look for /etc/timezone first before /etc/localtime #3

Merged

Commits on Oct 22, 2014

  1. on unix systems, look for /etc/timezone first before /etc/localtime

    On ubuntu systems (Etch and later), /etc/localtime is a copy of
    /usr/share/zoneinfo/$zonefile, which means DateTime::TimeZone::Local::Unix
    spends a lot of time looking for the file that matches it, and it takes a LONG
    time (especially when done many times for a single page load!); whereas
    /etc/timezone also exists, and this is a simple file that contains the name of
    the timezone, so checking for this file first would be much faster.
    karenetheridge committed Oct 22, 2014
    Configuration menu
    Copy the full SHA
    d12b461 View commit details
    Browse the repository at this point in the history