Results 1 to 3 of 3
  1. #1

    Default DB customers_info field default entries?

    Hello

    I am having problems with the date and can't find out the good configuration for fields in the table customers_info:

    customers_info_date_account_created:

    customers_info_date_account_last_modified

    etc.

    Mine was setup with basic Zencart:

    Default: NULL

    But suddenly i ended up with :

    customers_info_date_account_last_modified: 10/11/2036

    In the db I changed it for the 1st day of this month and now all new customers have this same date in customers_info_date_account_last_modified...

    On the wiki page:

    http://www.zen-cart.com/wiki/index.p...customers_info

    it says:

    Default: NULL

    AND

    Default Entries

    customers_info_id: 1
    customers_info_date_of_last_logon: 0001-01-01 00:00:00
    customers_info_number_of_logons: 0
    customers_info_date_account_created: 2004-01-21 01:35:28
    customers_info_date_account_last_modified: 0001-01-01 00:00:00
    global_product_notifications: 0

    So basically what is the good way to configure those fields to avoid having a wrong date?

    Thanks

    P.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: DB customers_info field default entries?

    The default of NULL is correct. You can see the original valid structure in the /zc_install/sql/mysql_zencart.sql file.

    Your problem probably has nothing to do with MySQL or default field entries, but rather a display problem conflicting with date mask settings which you've changed or customized in your store. There are various other threads on the same topic.
    .

    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.

  3. #3

    Default Re: DB customers_info field default entries?

    Hi

    I can't find any info specific about "date mask settings" are you referring to the date showing in the catalog / admin language file ?

    I have this in the catalog file (french.php):

    @setlocale(LC_TIME, 'fr_FR.ISO_8859-1');

    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('DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // this is used for date()

    and this in the admin file (french.php)

    setlocale(LC_TIME, 'fr_FR.ISO_8859-1');
    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

    Beside those 2 files, where should i look?

    Thanks

    Pat

 

 

Similar Threads

  1. v139h Field doesn't have a default value
    By JoshS in forum General Questions
    Replies: 1
    Last Post: 13 Jul 2016, 04:29 PM
  2. Customer Default Email Preference duplicate entries
    By notset4life in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 9 Mar 2011, 08:24 PM
  3. DB structure difference (customers, customers_info) between 1.3.0.1 & 1.3.8a?
    By bodyjewelrystores in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 16 Jul 2009, 09:33 PM
  4. 1364 Field 'query_keys_list' doesn't have a default value
    By geekgirl in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 13 Apr 2009, 12:54 AM
  5. 1062 duplicate entry 51 for key 1 (customers_info table)
    By heavenlynights in forum Upgrading from 1.3.x to 1.3.9
    Replies: 13
    Last Post: 8 Dec 2008, 02:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR