I'm running version 1.6.3 on a Windows 2003 server. Whenever the
system sends out an email to a user (i.e. E-mail password button),
the email gets sent, but the following error appears on the screen:
--
Login error: Error sending mail: mail() [function.mail]: It is not
safe to rely on the system's timezone settings. Please use the
date.timezone setting, the TZ environment variable or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'America/New_York'
for '-4.0/DST' instead.
--
I've added the following to LocalSettings.php, and it did update the
dates reported on History and so forth, but did nothing for the error
--
#Set Default Timezone
$wgLocaltimezone = "America/New_York";
$oldtz = getenv("TZ");
putenv("TZ=$wgLocaltimezone");
$wgLocalTZoffset = date("Z") / 3600;
putenv("TZ=$oldtz");
--
Any idea?
Thanks in advance,
Chris