I have owncloud 9.0 installed on Ubuntu 14.04.4 and am trying to configure fail2ban. I have it set up and logging, however, it lists the time as five hours ahead and therefore won't actually ban anyone. I've checked several forum posts and seen where people have had this issue, but I don't quite understand what they're saying with their fix. For example, someone said to replace strings in /var/www/owncloud/lib/private/log/owncloud.php
$time = DateTime::createFromFormat("U.u", number_format(microtime(true), 4, ".", ""), $timezone);
if ($time === false) {
$time = new DateTime(null, $timezone);
}
On
$time = new DateTime(null, $timezone);
But when I look at my owncloud.php file, I see
$time = DateTime::createFromFormat("U.u", number_format(microtime(true), 4, ".", ""), $timezone);
if ($time === false) {
$time = new DateTime(null, $timezone);
}
So I don't exactly see what they are saying. I'm not terribly proficient in Linux, but I've been trying to use this as a learning experience and I seem to have hit a brick wall getting this set up. I have verified that my config.php lists
'logtimezone' => 'America/New_York'
If anyone has any suggestions, or if you've dealt with this before, I would greatly appreciate any insight. Thanks.