Ticket #1650: mythweb_tz.patch

File mythweb_tz.patch, 1.4 KB (added by fhriley@…, 20 years ago)

patch to add timezone for each page

  • themes/default/header.php

     
    1515// UTF-8 content
    1616    header("Content-Type: text/html; charset=utf-8");
    1717
     18    if (time_zone != '')
     19        putenv('TZ='.time_zone);
    1820?>
    1921<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    2022<html>
  • themes/wap/header.php

     
    1515// UTF-8 content
    1616    header("Content-Type: text/html; charset=utf-8");
    1717
     18    if (time_zone != '')
     19        putenv('TZ='.time_zone);
    1820?>
    1921<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    2022<html>
  • config/conf.php

     
    1616 *
    1717/**/
    1818
     19// The time zone of this webserver. You generally only need to set this if you
     20// live in an area that does not observe daylight savings time.
     21    define('time_zone', '');
     22
    1923// The domain of this webserver, for cookie validation and other things.  This
    2024//  *should* work automatically as-is, but if cookies don't work, you may need
    2125//  to manually set this to the full domain name of this server.