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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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 10 Years, 7 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 10 Years, 7 Months ago Karma: 746
Hello,

Send your order number by email please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#43587
Re:wrong time zone 10 Years, 7 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 10 Years, 7 Months ago Karma: 746
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 10 Years, 7 Months 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 10 Years, 7 Months ago Karma: 746
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