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?

wrong time zone
(1 viewing) (1) Guest
ARI Quiz Lite
Go to bottomPage: 123
TOPIC: wrong time zone
*
#43570
wrong time zone 4 Years, 2 Months ago Karma: 0
The quiz result date (start date, end date) is in UTC+0, which is not correct, I set utc+8 (shanghai) in joomla 1.7 global configuration, and the datetime store in mysql is utc+0.

I found an article about the date in joomla, but now idea how to modify it.

webamoeba.co.uk/blog/working-with-dates-in-joomla/

can anyone help?
The administrator has disabled public write access.
 
#43574
Re:wrong time zone 4 Years, 2 Months ago Karma: 666
Hello,

Send your order number by email please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#43587
Re:wrong time zone 4 Years, 2 Months ago Karma: 0
I use lite version.

I saw there are some code in class.Date.php to handle timezone, no idea why it can't work.
Code:

function formatDate($date, $format = null, $tz = null)
{
$format = ArisDate::_getFormat($format);
$tz = ArisDate::_getTimeZone($tz);

$regs = null;
if ($date && preg_match('#([0-9]{4})-([0-9]{2})-([0-9]{2})\s([0-9]{2}):([0-9]{2}):([0-9]{2})#', $date, $regs)) 
{
$date = mktime($regs[4], $regs[5], $regs[6], $regs[2], $regs[3], $regs[1]);
$date = $date > -1 ? strftime($format, $date + ($tz * 60 * 60)) : '-';
}

return $date;
}

The administrator has disabled public write access.
 
#43590
Re:wrong time zone 4 Years, 2 Months ago Karma: 666
Provide the following information:

1. What version of the extension do you use?

2. Does the problem occur on frontend or backend? Does it occur on the page will all quizzes results?

3. What time zone is used for user who opens the page?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#43736
Re:wrong time zone 4 Years, 1 Month ago Karma: 0
1. com_ariquizlite 1.5.0

2. both, same for all result, it look like the timezone calculation no effect.

3. UTC+8, same as server time.
The administrator has disabled public write access.
 
#43737
Re:wrong time zone 4 Years, 1 Month ago Karma: 666
1. The latest version of the extension is 1.2.3 so you can't use version 1.5.0.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 123