Author Topic: Tax & Calculation Rules Wrong Dates  (Read 161 times)

leoalv

  • Beginner
  • *
  • Posts: 6
Tax & Calculation Rules Wrong Dates
« on: November 22, 2020, 05:14:53 am »
Hello gentlemen, thanks in advance for the answer.
  • Website Time Zone is Zurich.
  • I have created a rule to apply a 10% discount to all products and have scheduled it for a date.

The problem is that this discount is not published until 1 hour after the selected date (I calculated it by changing the date in the database). The same thing happens with the end date.

My question is where can I increase the script that publishes the discount by 1 hour? or the scheduled rules?

The time tested with PHP is correct, the order date is correct, all other dates are fine. I have also tried it with other sites that have a Berlin Time Zone and another with Universal Time, Coordinated (UTC) time zone in the 4 sites. There is this problem, I don't know if it is a virtuemart bug.

Thanks, I hope to fix this asap.

diri

  • Jr. Member
  • **
  • Posts: 119
  • VirtueMart Version: most recent dev version (trunk)
Re: Tax & Calculation Rules Wrong Dates
« Reply #1 on: November 22, 2020, 09:15:47 am »
Looks like something is working with UTC (GMT).

Version of Joomla, Virtuemart, PHP?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27942
  • Always on vacation
    • Jenkin Hill Internet
Re: Tax & Calculation Rules Wrong Dates
« Reply #2 on: November 22, 2020, 12:59:59 pm »
Is this with the current VirtueMart version, VM 3.8.610373 ?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.23 PHP 7.4.12

leoalv

  • Beginner
  • *
  • Posts: 6
Re: Tax & Calculation Rules Wrong Dates
« Reply #3 on: November 22, 2020, 16:29:31 pm »
The sites have the following versions of Joomla and Virtuemart
Joomla 3.9.19 + VM 3.8.2 10325
Joomla 3.9.22 + VM 3.8.4 10335
Joomla 3.9.22 + VM 3.8.6 10373
PHP versions 7.4.11 and 7.4.12
Code: [Select]
date() show correct time and date.

in all it has the same problem.