Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Time Stamps on Quizzes
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 1
TOPIC: Time Stamps on Quizzes
#47171
Time Stamps on Quizzes 10 Years, 11 Months ago Karma: 0
I am running Quiz Lite version 1.2.3 on Joomla 2.5.17. It works perfectly and it a great extension. I have the time zone for Joomla set to Chicago, in the php.ini the time zone is set to US/Central. When someone completes a quiz, it is labeling the quiz start and end times exactly 12 hours ahead of when it was taken. I have browsed through the forums here and found an older post about changing the $tz value in the class.date.php. The newest version of this file doesn't have the same layout. Am I missing a setting somewhere to correctly show the date and time?
The administrator has disabled public write access.
 
#47181
Re:Time Stamps on Quizzes 10 Years, 11 Months ago Karma: 760
Hello,

Dates are stored in UTC format in database and then formatted according to time zone of currently logged user. ArisDate::formatDate() method from <joomla_directory>\administrator\components\com_ariquizlite\kernel\Date\class.Date.php file is used for this purpose. Timezone is retrieved in ArisDate::_getTimeZone() method.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47182
Re:Time Stamps on Quizzes 10 Years, 11 Months ago Karma: 0
Thank you for the reply. I was able to correct the issue by editing the class.date.php file. On line 71 I changed to read as follows:

$tz = "Etc/GMT-6";

After doing that, all times and dates show correctly. This machine is running Ubuntu, which has the time zone showing as "America/Chicago". When I tried to manually set $tz to that value, I received an error on the page that it was not a valid time zone.
The administrator has disabled public write access.
 
Go to topPage: 1