Forums / Setting Up Categories, Products, Attributes / How do I change the date products are added?

How do I change the date products are added?

Views: 3,854

Results 1 to 9 of 9
7 Jun 2009, 3:23 PM
#1
alexiss avatar

alexiss

New Zenner

Join Date:
Jun 2009
Posts:
63
Plugin Contributions:
0

How do I change the date products are added?

Hello,

I just did a new install of zen cart dos any one know how I can fix this problem.

When I add my products to my store at the bottom of the product it show This product was added to our catalog on Wednesday 31 December, 1969. How do I change it to the correct date and year.

Thanks lexxie
https://www.ehaggle.ws
Free online auctions

28 May 2011, 3:40 AM
#2
hbellc avatar

hbellc

New Zenner

Join Date:
May 2011
Posts:
24
Plugin Contributions:
0

Re: How do I change the date products are added?

I am having the same issue. please someone tell us how to correct this. it looks very unprofessional for something like that to be there if you have a professional business.

In other words HELP!!

Thank you

28 May 2011, 3:46 AM
#3
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: How do I change the date products are added?

Backup the database first> https://www.zen-cart.com/tutorials/index.php?article=103

You will have to edit the date in the database for these items

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 May 2011, 3:55 AM
#4
hbellc avatar

hbellc

New Zenner

Join Date:
May 2011
Posts:
24
Plugin Contributions:
0

Re: How do I change the date products are added?

Thank you did not know if i posted in correct area since there was no response to the other persons same question.

Ok i read how to do the backup etc but nothing on how to edit the date within the database, can you or someone link me to details step by step.

Again sorry for the double post,

Thanks
Jim

28 May 2011, 3:59 AM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: How do I change the date products are added?

Your web host should have a cpanel for you to edit:
www.your-website.com/cpanel
Then click on the icon called phpMyadmin
click on the database you are using
click on the table called: Products
here you will see the product names and a heading called: products_date_added

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 May 2011, 4:07 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: How do I change the date products are added?

Dec 31 1969 is a magic number: the lowest date that MySQL will display when it finds invalid data.

So, it begs the question: what is the actual data in your database set to?
You'll need to use phpMyAdmin to look at the date_added field in your products table. There are various tutorials on phpMyAdmin use available online. Maybe even in your hosting company's help system.

If you've been mussing with date display formats or changing locales or non-english languages that you've set your system to try using an invalid date format and it's confused so it's just displaying that magic value.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jun 2011, 1:28 AM
#7
hbellc avatar

hbellc

New Zenner

Join Date:
May 2011
Posts:
24
Plugin Contributions:
0

Re: How do I change the date products are added?

DrByte:

Dec 31 1969 is a magic number: the lowest date that MySQL will display when it finds invalid data.

So, it begs the question: what is the actual data in your database set to?
You'll need to use phpMyAdmin to look at the date_added field in your products table. There are various tutorials on phpMyAdmin use available online. Maybe even in your hosting company's help system.

If you've been mussing with date display formats or changing locales or non-english languages that you've set your system to try using an invalid date format and it's confused so it's just displaying that magic value.

I was lost before now i am totally lost by your response lol my brain went into seizures. Think i will let it stay where its at.

Thanks Everyone
Jim

10 Dec 2011, 3:22 PM
#8
zc_newbie_1 avatar

zc_newbie_1

New Zenner

Join Date:
Nov 2010
Location:
Miami, Florida
Posts:
57
Plugin Contributions:
0

Re: How do I change the date products are added?

Hi All!
I would like to reset the date that products were added to Zen Cart. I have backed up everything. In the cpanel, I have been able to access my mySQL database. I see the products_added_date file and the earliest date that I have is 7/17/2011.
I don't know if this means anything but my default is 0001-01-01 00:00:00.

I see the file but I do not know how I can change the date. I have tried searching the forum and looking for an answer through search engines with no success. It keeps bringing me back to this post.

Do I change the 0001-01-01 to a date that I would like?

Please help.

18 May 2012, 12:27 PM
#9
napoleon_2008 avatar

napoleon_2008

New Zenner

Join Date:
Sep 2011
Posts:
1
Plugin Contributions:
0

Re: How do I change the date products are added?

Down your product list with easy populate, Change the dates using find and replace in excel. save as csv and upload back to shop.

ZC Newbie:

Hi All!
I would like to reset the date that products were added to Zen Cart. I have backed up everything. In the cpanel, I have been able to access my mySQL database. I see the products_added_date file and the earliest date that I have is 7/17/2011.
I don't know if this means anything but my default is 0001-01-01 00:00:00.

I see the file but I do not know how I can change the date. I have tried searching the forum and looking for an answer through search engines with no success. It keeps bringing me back to this post.

Do I change the 0001-01-01 to a date that I would like?

Please help.