Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    14
    Plugin Contributions
    0

    Default Problems with the small calendar in the Catalog menu

    Hallo everyone,

    I have a problem. A hour ago i tried to put a special. So i click on the special menu under Catalog and then i added a new special. Everything was fine, but then i saw that i made a mistake and i wanted to change the date so i click on edit and click on the start and end date, but when i click on the date the small box dosnt say like for example 26/02/2009 , but some code DATE_FOR2AT_SPIFFYCAL .
    When i click "OK" then the start and end datum ( by the list screen ) is 30.11.2036 . And he dont want to select the dates that i select. He only show DATE_FOR2AT_SPIFFYCAL. When i click edit again then i see begin date: 30.11.2036 and end date 30.11.2036.

    My version is 1.3.8a ( the latest )
    I have installed the following addons:

    Admin Activity Report
    admin_notes_advanced_0-914
    easy_populate_csv_1-2-5-5-csv-2
    Flat Rate Clone
    I have also edited the files :

    /www/www/admin/includes/languages/english.php
    /www/www/admin/includes/languages/dutch.php
    /www/www/includes/languages/english.php
    /www/www/includes/languages/dutch.php

    so that i can use the EU standart date format e.g 30/02/2009
    DD/MM/YYYY

    I looked at the wiki tutorial on how to do that.

    here is my /includes/languages/english.php

    (just the piece the i changed )

    Code:
    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat try 'en_US'
    // on FreeBSD try 'en_US.ISO_8859-1'
    // on Windows try 'en', or 'English'
      @setlocale(LC_TIME, 'en_US.ISO_8859-1');
      define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
      define('DATE_FORMAT_LONG', '%u %d %B, %Y'); // this is used for strftime()
      define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
      define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    
    ////
    // $date is given 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, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
      } else {
        return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
      }
    }
    and here is the admin language file :

    Code:
    // look in your $PATH_LOCALE/locale directory for available locales..
    // on RedHat6.0 I used 'en_US'
    // on FreeBSD 4.0 I use 'en_US.ISO_8859-1'
    // this may not work under win32 environments..
      @setlocale(LC_TIME, 'en_US.ISO_8859-1');
      define('DATE_FORMAT_SHORT', '%d/%m/%Y');  // this is used for strftime()
      define('DATE_FORMAT_LONG', '%u %d %B, %Y'); // this is used for strftime()
      define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
      define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
    
    ////
    // $date is given 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, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
      } else {
        return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
      }
    }

    Here are some images so that you can see what i mean.




    my url is: http://www.games-en-consoles.com

  2. #2
    Join Date
    Aug 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Problems with the small calendar in the Catalog menu

    it is: DATE_FORMAT_SPIFFYCAL,

    ...not: DATE_FOR2AT_SPIFFYCAL


    BTW:
    I have a similar problem. I get the spiffycal date selector and it inserts dates correctly - but after hitting update button both start and end dates are set to this 30/11/2036. Any ideas anyone?

 

 

Similar Threads

  1. Replies: 2
    Last Post: 1 Feb 2015, 03:35 PM
  2. Categories with the drop down menu in the ezpages
    By samuelbarnaby in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 Apr 2011, 05:27 PM
  3. Replies: 2
    Last Post: 6 Mar 2010, 07:05 PM
  4. 'Categories' menu and the 'Home Log in" menu to be on the same line
    By jamesdavid in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 May 2008, 04:19 PM
  5. Removing the small "home" link to the right of the sidebar?
    By MysticHarbor in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Aug 2007, 09:06 PM

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