Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2007
    Posts
    7
    Plugin Contributions
    0

    help question How change date format to spanish?

    How can change the format of the date to spanish?

    This is display in products:
    Agregado el: Wednesday 11 April, 2007
    * it must be shown in this way
    Agregado el: Miercoles 11 de Abril del 2007

    When send the order by email appears:
    Fecha del pedido: Saturday 14 April, 2007 * it must be shown in this way
    Fecha del pedido: Sabado 14 de Abril del 2007

    What files must be change?

    Best regards from Monterrey, Mexico!

  2. #2
    Join Date
    Apr 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: How change date format to spanish?

    ok, i have this changes in function_general.php

    PHP Code:
      function zen_date_long($raw_date) {
        if ( (
    $raw_date == '0001-01-01 00:00:00') || ($raw_date == '') ) return false;

        
    $year = (int)substr($raw_date04);
        
    $month = (int)substr($raw_date52);
        
    $day = (int)substr($raw_date82);
        
    $hour = (int)substr($raw_date112);
        
    $minute = (int)substr($raw_date142);
        
    $second = (int)substr($raw_date172);
        
    $lemp "";
        
    $l_mes "";
        switch (
    $month){
            case 
    "01"$l_mes "Enero"; break;
            case 
    "02"$l_mes "Febrero"; break;
            case 
    "03"$l_mes "Marzo"; break;
            case 
    "04"$l_mes "Abril"; break;
            case 
    "05"$l_mes "Mayo"; break;
            case 
    "06"$l_mes "Junio"; break;
            case 
    "07"$l_mes "Julio"; break;
            case 
    "08"$l_mes "Agosto"; break;
            case 
    "09"$l_mes "Septiembre"; break;
            case 
    "10"$l_mes "Octubre"; break;
            case 
    "11"$l_mes "Noviembre"; break;
            case 
    "12"$l_mes "Diciembre"; break;
        }
        
    $l_emp $day." de ".$l_mes." del ".$year;
        return 
    $l_emp;
    //    return strftime(DATE_FORMAT_LONG, mktime($hour,$minute,$second,$month,$day,$year));
      


 

 

Similar Threads

  1. How do I change the Date format?
    By tobicky in forum General Questions
    Replies: 62
    Last Post: 29 Jul 2011, 05:46 AM
  2. How do I change date format?
    By craftyrose in forum Basic Configuration
    Replies: 3
    Last Post: 21 Aug 2010, 03:52 AM
  3. change date format how??
    By kitcorsa in forum General Questions
    Replies: 3
    Last Post: 30 Oct 2008, 02:54 PM
  4. How to change date format
    By dail in forum Customization from the Admin
    Replies: 0
    Last Post: 13 Jun 2007, 08:35 AM

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