Zen Cart Logo
Forums / Bug Reports / Date problem when adding featured product

Date problem when adding featured product

Locked

Views: 1,658

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
2 May 2010, 8:52 PM
#1
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Date problem when adding featured product

Version 1.3.9b

Catalog -> Featured Products

Select a product from the list

Use the arrow alongside the available date field to pull down the calendar and select a date

Do the same for the expiry date

The dates in those fields now have a / at the beginning which means that when you click on "insert", dates in 2036 are entered instead of the correct ones. Removing the / from each field before clicking on "insert" makes it WAD.

I've read the thread at http://www.zen-cart.com/forum/showthread.php?t=151712&highlight=featured+product+date regarding this problem. I have edited the two english.php files per https://www.zen-cart.com/tutorials/index.php?article=401 so I went and checked through the relevant sections of each very carefully to see if I had made an error. I found none.

Dates elsewhere on the site - both in Admin and the Online Catalog - work fine.

Regards

Nick

3 May 2010, 12:58 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Date problem when adding featured product

I am not reproducing a problem on the dates using the calendars ...

Have you changed anything about the dates in the Admin?

3 May 2010, 8:40 AM
#3
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Re: Date problem when adding featured product

Ajeh:

Have you changed anything about the dates in the Admin?

Only the edits to the english.php files to change to UK date format, as referred to above. No other changes.

Regards

Nick

3 May 2010, 9:14 AM
#4
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Re: Date problem when adding featured product

A bit more background to this:

It was working fine in 1.3.8, prior to the upgrade. Since the upgrade I have re-edited the new english.php files in admin and the catalog (per the FAQ) to the UK date format. As a sanity check, I have checked all of the edits again.

In Catalog -> Featured Products when I pull down the calendar and select a date, it is posted into the date field in the form:

/03/05/2010 (note the dd/mm/yyyy format and the fact that the initial / which is causing the problem).

In Catalog -> Categories/Products if I define or edit a product, pull down the calendar there for "Date Available" and select a date, it is posted into the field in the form:

2010-05-03 (which works fine when I preview and save it).

Regards

Nick

21 Jul 2010, 8:38 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Date problem when adding featured product

Have you been able to resolve this issue or is it still a problem for you? :unsure:

21 Jul 2010, 9:10 PM
#6
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Re: Date problem when adding featured product

Still the same. I've just been manually editing out the leading /

Regards

Nick

21 Jul 2010, 10:38 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Date problem when adding featured product

In the:
/admin/includes/languages/english.php

Are you using:

define('DATE_FORMAT_SPIFFYCAL', 'dd/mm/yyyy');

Or are you using:

define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
21 Jul 2010, 11:03 PM
#8
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Re: Date problem when adding featured product

The second:

define('DATE_FORMAT_SPIFFYCAL', '/dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

21 Jul 2010, 11:04 PM
#9
nickgreaves avatar

nickgreaves

New Zenner

Join Date:
Mar 2010
Posts:
72
Plugin Contributions:
0

Re: Date problem when adding featured product

Ah, Eureka. Just seen the problem!

Doh! How did I miss that.

Of course it's working fine now (not surprisingly).

Thanks for pointing me in the right direction.

Nick

22 Jul 2010, 1:21 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Date problem when adding featured product

I just tried a v1.3.8 with /admin/includes/languages/english.php changed from:
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

to be:
define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy'); //Use only 'dd', 'MM' and 'yyyy' here in any order

and the same issue exists ...

There is a problem with the definition as to adding the dates in that format ...

However, this appears to be an error also in v1.3.8 ...

We will look into this further ...

22 Jul 2010, 1:36 AM
#11
thisuc avatar

thisuc

New Zenner

Join Date:
Apr 2010
Posts:
2
Plugin Contributions:
0

Re: Date problem when adding featured product

Yes, my site have the same problem.
Looking forward to expert!