Post by jbarrick » Tue Oct 13, 2009 6:48 am

Currently all of the dates are displaying like (dd/mm/yyyy)

I need them to either display mm/dd/yyyy or (Spelled out) month dd, yyyy.

How do I do this?

New member

Posts

Joined
Fri Aug 28, 2009 7:23 am

Post by Daniel » Tue Oct 13, 2009 7:12 am

look at the language files!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by jbarrick » Tue Oct 13, 2009 11:34 am

OK I found it.

New member

Posts

Joined
Fri Aug 28, 2009 7:23 am

Post by laz0rama » Fri Apr 09, 2010 5:19 am

i have found the date format in the main english language file (.../catalog/language/english/english.php), and i have changed it to my desired format. however, when i look at, for example, the list of orders, i still see the dates formatted euro style. i see in the database they are stored as datetime, so i'm assuming it isn't about how they are stored in the db. is there something else i am missing?

thanks!

Newbie

Posts

Joined
Sun Aug 16, 2009 5:34 am

Post by laz0rama » Fri Apr 09, 2010 5:23 am

nevermind, i see my issue. i changed the date format for the catalog, but not for the admin pages. i changed it for admin in admin/language/english/english.php.

Newbie

Posts

Joined
Sun Aug 16, 2009 5:34 am

Post by Karen » Wed Jul 28, 2010 4:35 pm

rph wrote:To recap, you need to change the file in TWO locations:

/admin/language/english/english.php
/catalog/language/english/english.php
Okay, I changed the long and short date formats in these two files.
But I'm still seeing year/month/date on the data tab for products.
I don't get this.
1.4.8b

Using OC version 1.4.8b
http://catandcaboodle.com/


User avatar
Active Member

Posts

Joined
Thu Jun 10, 2010 2:51 pm
Location - WA State, USA

Post by Grrrr » Wed Sep 08, 2010 1:54 am

Not working for me either!

Newbie

Posts

Joined
Thu Mar 04, 2010 5:43 am

Post by rswallow » Sat Apr 23, 2011 10:20 pm

I am not being contrary, but why would someone not put the date format in the settings rather than making it necessary to change the php files directly considering that the US and GB use different date formats?

Newbie

Posts

Joined
Sat Apr 23, 2011 10:10 pm

Post by Concept211 » Thu Jan 05, 2012 12:36 am

I went ahead and created a vQmod for updating the dates to US format:
http://www.opencart.com/index.php?route ... on_id=4504

Enjoy!

User avatar
New member

Posts

Joined
Fri Oct 14, 2011 1:40 am

Post by mybaysix » Thu Jan 05, 2012 5:51 am

just downloaded your US dates and times, where do i download it in the opencart files???

Newbie

Posts

Joined
Fri Nov 11, 2011 1:35 am

Post by Concept211 » Thu Jan 05, 2012 7:08 am

mybaysix wrote:just downloaded your US dates and times, where do i download it in the opencart files???
First install vQmod: http://code.google.com/p/vqmod/

And then upload my .xml file to the /vqmod/xml/

User avatar
New member

Posts

Joined
Fri Oct 14, 2011 1:40 am

Post by mybaysix » Thu Jan 05, 2012 7:36 am

great thank you so much! everything works!

Newbie

Posts

Joined
Fri Nov 11, 2011 1:35 am

Post by Concept211 » Thu Jan 05, 2012 7:44 am

Glad to help :)

User avatar
New member

Posts

Joined
Fri Oct 14, 2011 1:40 am

Post by Mike Guenther » Fri Jan 20, 2012 5:42 am

hmm...when I use this plugin it fixes the date great, but it breaks my site? A lot of the jquery doesnt work as well as products not adding to cart.

http://sunnybunnyeastereggs.com/store/ is my site. I removed the plugin to get the site working properly.

Any ideas?

Active Member

Posts

Joined
Thu Oct 13, 2011 12:00 am

Post by thedesignparlor » Thu Dec 06, 2012 10:58 pm

Change the date available (from the Data tab on Product page in admin panel) on the file:

admin/controller/catalog/product.php

on lines 867 and 869


Posts

Joined
Sat Nov 17, 2012 11:58 pm

Post by mfarmer » Sun Sep 29, 2013 7:57 pm

If anyone is still interested... All you have to do is edit the file located at:
{yourwebsite.com}\catalog\language\english\english.php

The first two lines are the time and date settings for the site.

If you want a good reference to go by, the php date page is a great one. It is located at:
http://www.php.net/manual/en/function.date.php

Hope that helps anyone who finds this post in the future!

Newbie

Posts

Joined
Fri Sep 27, 2013 6:46 am

Post by exibar » Fri Dec 06, 2013 12:52 pm

mfarmer wrote:If anyone is still interested... All you have to do is edit the file located at:
{yourwebsite.com}\catalog\language\english\english.php

The first two lines are the time and date settings for the site.

If you want a good reference to go by, the php date page is a great one. It is located at:
http://www.php.net/manual/en/function.date.php

Hope that helps anyone who finds this post in the future!
I did this but the date is still showing incorrectly. Do I have to restart PHP on my web server? Only problem is that my server is hosted and I only have access through cPanel... anyone know how to restart web services via cPanel?

thanks!
Mike B

New member

Posts

Joined
Fri Dec 06, 2013 12:50 pm

Post by ten80north! » Wed Oct 15, 2014 2:34 am

Hi,
For those of you using Mijoshop (the Joomla component that bridges Opencart and Joomla), you will need to modify the following files in your Joomla installation. For some reason the Mijoshop developers decided to overwrite the date formats in the Opencart language files.

/language/en-GB/en-GB.com_mijoshop.ini
/administrator/en-GB/en-GB.com_mijoshop.ini

Newbie

Posts

Joined
Wed Oct 15, 2014 2:30 am

Post by alces » Fri Feb 27, 2015 4:59 am

ten80north! wrote:Hi,
For those of you using Mijoshop ...
Thanks, this is what I was looking for. Works perfectly.

Newbie

Posts

Joined
Fri Feb 27, 2015 4:57 am

Post by deunus » Fri Sep 02, 2016 8:34 am

How to change the date??? My website shows yesterday date.

Newbie

Posts

Joined
Wed Aug 10, 2016 11:42 am
Who is online

Users browsing this forum: paulfeakins and 70 guests