Author Topic: Wrong Time Inserted in Order History  (Read 4334 times)

neokolyan

  • Beginner
  • *
  • Posts: 3
Wrong Time Inserted in Order History
« on: September 09, 2008, 21:45:40 pm »
If I use the correct time zone (+4) in global joomla's config (1.5.6) I find that my news have a correct time of creation but the time in Order history (1.1.2) isn't correct (22.16 instead of 18.16). If I set time zone to 0, I've got wrong time of creation in news but the correct time in order history. Can I fix it in virtuemart's config? ??? Or is it a bug?  ???

BernardE

  • Jr. Member
  • **
  • Posts: 52
    • Wooza Shop - Online mall and shops
Re: Wrong Time Inserted in Order History
« Reply #1 on: September 30, 2008, 13:17:14 pm »
I also have this time problem

wallstreet

  • Beginner
  • *
  • Posts: 10
    • Columbus Ohio Website Design
Re: Wrong Time Inserted in Order History
« Reply #2 on: October 31, 2008, 19:44:44 pm »
I have the same issue!

Clark_NZ

  • Beginner
  • *
  • Posts: 11
Re: Wrong Time Inserted in Order History
« Reply #3 on: December 03, 2008, 21:46:24 pm »
same problem here too.

Andrew

  • Jr. Member
  • **
  • Posts: 128
    • Shriek Design
Re: Wrong Time Inserted in Order History
« Reply #4 on: February 10, 2009, 22:22:11 pm »
Also here. No ideas?

ameless

  • Beginner
  • *
  • Posts: 6
Re: Wrong Time Inserted in Order History
« Reply #5 on: March 31, 2009, 23:50:09 pm »
I would also appreciate a solution to this problem.  Anyone?

Mike B.

  • Beginner
  • *
  • Posts: 10
Re: Wrong Time Inserted in Order History
« Reply #6 on: April 06, 2009, 17:54:26 pm »
I applied this fix and the order date is now correct on the Purchase Order but still off in the Admin screen.

Quote
Temporary Solution

I'm using Joomla! 1.5.9 with Virtuemart 1.1.3, in Australia also (GMT+10).

I narrowed the issue down to approx. line 2016 in:

    * administrator/components/com_virtuemart/classes/ps_checkout.php


I replaced the following line:

    * 'order_date' => $VM_LANG->convert( vmFormatDate($db->f("cdate"), $VM_LANG->_('DATE_FORMAT_LC') )),


with...

    * 'order_date' => date("l, d F Y", $db->f("cdate")),


I assume that the "vmFormatDate" function is the real cause of the issue here, but the above temporary fix does work.
 Wink

I hope this helps someone (temporarily) whilst this issue is being looked at.
« Last Edit: March 05, 2009, 02:57:03 am by Taeldos »

Svakanaggur

  • Beginner
  • *
  • Posts: 1
Re: Wrong Time Inserted in Order History
« Reply #7 on: February 28, 2010, 16:43:47 pm »
Hi,

I tryied the fix above and I got the date in English.
I am using Icelandic so that didn't work.

I found this code on a spanish site and it seems to work.

Location of php file:
administrator/components/com_virtuemart/classes/ps_checkout.php   

Replace:
'order_date' => $VM_LANG->convert( vmFormatDate($db->f("cdate"), $VM_LANG->_('DATE_FORMAT_LC') )),

With:
'order_date' => vmFormatDate($db->f("cdate"), $VM_LANG->_('DATE_FORMAT_LC') ),

I got my Icelandic and the right date format ;)

Greetings,
Svakanaggur