[Tickets #8496] Re: Incorrect Reminder Message Log Time

bugs at horde.org bugs at horde.org
Thu Aug 20 21:03:19 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8496
------------------------------------------------------------------------------
  Ticket             | 8496
  Updated By         | bhalsema at purdue.edu
  Summary            | Incorrect Reminder Message Log Time
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


bhalsema at purdue.edu (2009-08-20 17:03) wrote:

Really close.  I like your conservative approach.  :)

The only problem I ran into was that the TZ environment variable was  
still set, so it continued to override the system settings.  I must  
admit to not being an expert, but, I think, that something like the  
following is needed:

lib/Horde.php (starting line 77)

         /* Make sure to log in the system's locale and timezone. */
         $locale = setlocale(LC_TIME, 0);
         setlocale(LC_TIME, 'C');
         $tz = getenv('TZ');
-->    @putenv('TZ');

Thereby unsetting the TZ environment variable and letting the PHP  
mechanisms and system settings to be applied to logging.








More information about the bugs mailing list