VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: TheRealMaN_ on September 03, 2012, 06:39:02 AM

Title: Incorrect time displays in "Order history"
Post by: TheRealMaN_ on September 03, 2012, 06:39:02 AM
Just noticed incorrect order time displays in "order history", no matter what time zone set in joomla config, couldn't fix it. Can anyone check this? How can I correct time?

VM2.0.10 on Joomla 1.5.26 PHP 5.3.14
Title: Re: Incorrect time displays in "Order history"
Post by: Milbo on September 04, 2012, 00:46:03 AM
What do you mean with incorrect order time? everything is 0000?
Title: Re: Incorrect time displays in "Order history"
Post by: TheRealMaN_ on September 04, 2012, 02:25:55 AM
No, e.g., my server local time is 7.35 am, but it shows 3.35 am (always minus 4 hours). How can I adjust it? It doesn't help if I change joomla configuration time zone.
Title: Re: Incorrect time displays in "Order history"
Post by: nhamhongtien on September 27, 2012, 01:54:57 AM
me too, anyone help me? I use VM 1.1.9
Title: Re: Incorrect time displays in "Order history"
Post by: maxxer on December 02, 2012, 08:44:56 AM
Same problem, latest J and VM (2.0.14). Order history is in UTC while we're +1
Title: Re: Incorrect time displays in "Order history"
Post by: randomdev on December 13, 2012, 05:55:10 AM
Same problem. Time in backend looks fine but in customers order history is wrong
Title: Re: Incorrect time displays in "Order history"
Post by: randomdev on December 13, 2012, 06:16:09 AM
I fixed it using the following in the override for orders/details_history.php
Comment out first line and paste the second.

<?php //echo $_hist->created_on; ?>
<?php echo vmJsApi::date($_hist->created_on,'LC2',true); ?>
Title: Re: Incorrect time displays in "Order history"
Post by: Milbo on December 14, 2012, 23:59:37 PM
Thank you very much randomdev, added.
Title: Re: Incorrect time displays in "Order history"
Post by: toad78 on February 12, 2013, 22:44:36 PM
How would it work to fix the FORMAT of the date/time displayed in the backend (Virutemart>Orders). I've been having a heck of a time trying to format the date to be Day, Month Date, Year with the correct 12 hour time.

Instead, it displays Day, Date Month, Year and uses 24 hour time.

Thank you.

Title: Re: Incorrect time displays in "Order history"
Post by: Milbo on February 13, 2013, 14:09:47 PM
You must change the LC2, to LC1 or so....
Title: Re: Incorrect time displays in "Order history"
Post by: toad78 on February 13, 2013, 18:43:03 PM
Indulge me on how I may do that.    :)