==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this link:
    http://bugs.contribs.org/show_bug.cgi?id=6467

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================

           Summary: where to set date.timezone in php5 cgi
    Classification: Contribs
           Product: SME Contribs
           Version: 7.5
          Platform: Other
        OS/Version: Unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-php5-cgi
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


Requirement: to host a development web site that requires php5 and
Zend.
 - SME 7.5, php5 cgi installed in May, then removed and installed on
30-dec-2010 to assure current build is being used.
 - the web site project is in an ibay and info.php reports as expected.

Problem: calendar.php, a custom script, uses the date function, e.g.
  $month = date('n') % 12;

This raises an error "mktime() It is not safe to rely on the system's
timezone settings. You are *required* to use the date.timezone setting
or the date_default_timezone_set() function."

I have tried the following to no avail:

1. set the db configuration per the contrib how-to page.
  db configuration setprop php date.timezone America/Los_Angeles

2. To modify php.ini for php5, I created a custom template for php5 and
placed it in /etc/e-smith/templates-custom/etc/php5/.

3. To add a php directive to Apache, I tried a custom template placed
in /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/.

I ran the appropriate expand-template and restarted httpd in each case.
I also did this one at a time, removing the prior attempt before the
next.

I don't consider this a bug per se. More likely it is merely a case of
my ignorance, but I do hope someone can point me in the right
direction.

-- 
Configure bugmail: http://bugs.contribs.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to