VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: suvel on December 17, 2018, 18:29:34 PM

Title: Bug Revenue Report using GMT
Post by: suvel on December 17, 2018, 18:29:34 PM
php version: 7.2.5
Joomla version: 3.9.1
VirtueMart version: 3.4.2.9966
Joomla set to TimeZone "Amsterdam"

It seems that the Revenue Report (and the nice graphic at the main controlpanel  ;)) is using the stored GMT date/time.
I'm aware VM is using GMT time when saving records (orders) but voor displaying, generating invoices etc this GMT time is converted to the local timezone set at Joomla Server configuration.

In my case (1 hour after GMT - Netherlands) :
- when a shopper confirms an order for example at December 17, 2018  00:05  the time stored at the order record will show 2018-12-16 23:05:22
- at my order detail page, order overview page and also on invoices the correct date December 17, 2018 is displayed.
- at the Revenue Report page the view will add this order to date December 16, 2018 and is not corrected according TimeZone setting website.

Is there an easy way to correct this for now and perhaps in the future whitin a new build? The current Revenue Report puzzled the webshop owner  :(

Thx,
Ronald

Title: Re: Bug Revenue Report using GMT
Post by: Studio 42 on December 18, 2018, 15:09:14 PM
Have you try to modify the user timezone ?
In this case you can fake the displayed result i think.
Title: Re: Bug Revenue Report using GMT
Post by: suvel on December 18, 2018, 17:45:14 PM
For testing 2 administrator users:
1 with timezone "Amsterdam" GMT +1
1 with timezone "London" GMT

No change at date/time backend. Both the same  :-\

Nice try but is seems not to work and does not solve this issue
Title: Re: Bug Revenue Report using GMT
Post by: afterglow80 on April 16, 2019, 04:34:39 AM
I have this same issue. Revenue Report is displaying only in UTC, no matter what timezone server is set to or user is set to, the report will only show UTC. We need some help with showing the report in the timezone we're in. How do we fix this?
Title: Re: Bug Revenue Report using GMT
Post by: afterglow80 on April 29, 2019, 21:32:39 PM
*bump*