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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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 3 Years, 9 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 3 Years, 9 Months ago Karma: 667
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 3 Years, 9 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