bill110 Posted October 28, 2006 Posted October 28, 2006 Where does the code get the month from to display. I may have inadvertantly deleted something. I didnt notice this until I was answering a post. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
squeekit Posted October 28, 2006 Posted October 28, 2006 Where does the code get the month from to display. I may have inadvertantly deleted something. I didnt notice this until I was answering a post. in include/modules/new_products.php strftime('%B') gets passed to %s <!-- new_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'))); new contentBoxHeading($info_box_contents); for more info / tips on this > see my tips HERE...
bill110 Posted October 28, 2006 Author Posted October 28, 2006 in include/modules/new_products.php strftime('%B') gets passed to %s <!-- new_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'))); new contentBoxHeading($info_box_contents); for more info / tips on this > see my tips HERE... OK that code is correct. Also looked in includes/languages/english.php and the date format is defined there. Any ideas why it would not display the month? My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
squeekit Posted October 28, 2006 Posted October 28, 2006 do you have these lines in your catalog/includes/languages/english.php: @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'); ?
bill110 Posted October 28, 2006 Author Posted October 28, 2006 do you have these lines in your catalog/includes/languages/english.php: @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'); ? Yes, all this is here. Just to make sure I wasn't missing something I copied above and pasted it and still shows %s My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
bill110 Posted October 28, 2006 Author Posted October 28, 2006 do you have these lines in your catalog/includes/languages/english.php: @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'); ? Yes, all this is here. Just to make sure I wasn't missing something I copied above and pasted it and still shows %s My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
Recommended Posts
Archived
This topic is now archived and is closed to further replies.