jeffuk123 Posted April 13, 2008 Posted April 13, 2008 Hi I'm looking to change the date format to UK as well as any other settings required for the UK. I read a solution on the forum but this looks really long-winded and its dated 2005, have there been any easier solutions to this issue since then? Thank you, Jeff
♥geoffreywalton Posted April 14, 2008 Posted April 14, 2008 Edit /includes/languages/english.php @setlocale(LC_TIME, 'en_EN.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', DATE_FORMAT_SHORT . ' %H:%M:%S'); For a comprehensive way of changing EVERYTHING to UK (UK-Based: Default osCommerce Installation) http://www.oscommerce.com/forums/index.php?showtopic=130454 Another couple of threads might be of interest http://addons.oscommerce.com/info/4473 (UK & Overseas Postage Methods) http://www.oscommerce.com/forums/index.php?showtopic=277269 (Only if you plan to post to UK only! Removing Country Selection on Register.) Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
jeffuk123 Posted April 15, 2008 Author Posted April 15, 2008 Edit /includes/languages/english.php @setlocale(LC_TIME, 'en_EN.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', DATE_FORMAT_SHORT . ' %H:%M:%S'); For a comprehensive way of changing EVERYTHING to UK (UK-Based: Default osCommerce Installation) http://www.oscommerce.com/forums/index.php?showtopic=130454 Another couple of threads might be of interest http://addons.oscommerce.com/info/4473 (UK & Overseas Postage Methods) http://www.oscommerce.com/forums/index.php?showtopic=277269 (Only if you plan to post to UK only! Removing Country Selection on Register.) Thanks for your reply Geoff. Has anyone done this before as i'm apprehensive about losing any information already in my setup? Thanky you, Jeff
Recommended Posts
Archived
This topic is now archived and is closed to further replies.