Forums / Bug Reports / Salemaker wont set to on

Salemaker wont set to on

Views: 588

Results 1 to 3 of 3
7 Feb 2016, 9:03 AM
#1
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Salemaker wont set to on

Using ZC 1.5.4. I cannot turn on the salemaker if I enter a date in the end date box. When I click update it changes the date to 1/01/2036 and the sale is set to off. I have tried to set date for both the american format and the UK format and so have chosen dates that would work in bot formats but the same issue still occurs.

I have got the tableau template and FEC installed as well but cannot see that these are having and impact. Has anyone else had issue like this before?

Regards

MG

7 Feb 2016, 4:55 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker wont set to on

I cannot repeat this issue in Zen Cart v1.5.4 ...

Have you changed anything about the date in the:
/your_secret_admin/includes/languages/english.php

regarding the date? :lookaroun

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Feb 2016, 5:08 PM
#3
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Salemaker wont set to on

Ajeh,

I don't remember making any changes but this is what the file has:

$locales = array('en_UK', 'en_UK.utf8', 'en', 'English_United Kingdom.1252');
@setlocale(LC_TIME, $locales);
define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'dd/MM/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
define('ADMIN_NAV_DATE_TIME_FORMAT', '%A %d %b %Y %X'); // this is used for strftime()

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY

function zen_date_raw($date, $reverse = false) {

  if ($reverse) {
    return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
  } else {
    return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
  }
}