PDA

View Full Version : Match times



viewfromgorgie
31-05-2016, 06:29 PM
Hi there,

My server is set to UTC, as is my Joomla installation, however, when I post a match on to the system, it allows users to predict until 1hour AFTER the kick off time. How can I synchronise these times?

viewfromgorgie
31-05-2016, 06:38 PM
As you can see from this screenshot, the time was displaying as 4:35PM (16:35) but the match scheduled for 3:41PM (15:41) was still available to predict on.http://www.multihosting.com/support/forum/attachment.php?attachmentid=8&stc=1

3hills
01-06-2016, 10:39 AM
Hello,

in order to fix this issue you have to made some modifications in a file. Please navigate to:
1) your joomla installation
2) "components"->"com_multileague"->"models"->"matches.php"
3) edit that file and change "line 40" and "line 65" to "$current_date=date("Y-m-d H:i:s",strtotime("+6 hours"));". Where "+6 hours" is the difference between your server's time and the time you want. So change it in order to suit your needs.

Also in order to find your server time you can go to that file and in "line 2" add the following:
$timestamp = time();
$date_time = date("d-m-Y (D) H:i:s", $timestamp);
echo "Current date and local time on this server is $date_time";
exit();

Then navigate to the page you print screened. There you will see the "Current date and local time...". After that remove the lines mentioned above and calculate the difference in order to change the "+6 hours" as it suits you.

viewfromgorgie
01-06-2016, 10:53 AM
Many, many thanks, 3hills ... I'll give that a try

viewfromgorgie
01-06-2016, 11:13 AM
Worked perfectly ... thank you so much, 3hills