Jump to content

how to change .date('Y'). to 2005


Digitry Designs

Recommended Posts

I am having some issues. I am using zen cart and need to change

  define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' 
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">Zen Cart
</a>');

 

to

 

  define('FOOTER_TEXT_BODY', 'Copyright © 2005 ' <a href="' 
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">
Zen Cart</a>');

 

but when I do and save the file, the entire site goes blank.

 

Here is what I have

 

<?php
/**
* @package languageDefines
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: english.php 7440 2007-11-17 21:51:35Z drbyte $
*/

// FOLLOWING WERE moved to meta_tags.php
//define('TITLE', 'Zen Cart!');
//define('SITE_TAGLINE', 'The Art of E-commerce');
//define('CUSTOM_KEYWORDS', 'ecommerce, open source, shop, online shopping');
// END: moved to meta_tags.php

  define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="'
. zen_href_link(FILENAME_DEFAULT) . '" target="_blank">' . STORE_NAME . '
</a>. Powered by <a href="http://www.zen-cart.com" target="_blank">
Zen Cart</a>');

// 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', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
  define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
  if (!function_exists('zen_date_raw')) {
    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);
      }
    }
  }

 

Thank you in advance for any help.

Link to comment
https://forums.phpfreaks.com/topic/191571-how-to-change-datey-to-2005/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.