Hi
I installed the following add on for my 2.3 store and love it
http://www.oscommerce.com/community/contributions,1522
I was just wondering how to change the date format from mm-dd to dd-mm
Any ideas
Kind regards
Ian
Latest News: (loading..)
installed add on
Started by ianhaney, Jun 10 2012 07:53 PM
7 replies to this topic
#1
Posted 10 June 2012 - 07:53 PM
#2
Posted 10 June 2012 - 11:51 PM
Hi Ian,
Think it was a guy named SPOOKS
http://addons.oscommerce.com/info/2816
done before sure you will find what you need
John
Think it was a guy named SPOOKS
http://addons.oscommerce.com/info/2816
done before sure you will find what you need
John
#3
Posted 11 June 2012 - 07:46 AM
Hi John
Thanks for the reply
I followed the link you mentioned and did spooks bit of coding and got the following error at the top of my backend admin site
Warning: putenv(): Warning: Cannot set environment variable 'TZ' - it's not in the allowed list (setting: safe_mode_allowed_env_vars) in /customers/5/9/2/irhmedia.co.uk/httpd.www/administration/includes/application_top.php on line 177
Any ideas on how to correct it
Thanks
Ian
Thanks for the reply
I followed the link you mentioned and did spooks bit of coding and got the following error at the top of my backend admin site
Warning: putenv(): Warning: Cannot set environment variable 'TZ' - it's not in the allowed list (setting: safe_mode_allowed_env_vars) in /customers/5/9/2/irhmedia.co.uk/httpd.www/administration/includes/application_top.php on line 177
Any ideas on how to correct it
Thanks
Ian
#4
Posted 11 June 2012 - 07:58 AM
its cool fixed the problem, just had to put a @ in front of the putenv
I tested it out but the date format is still in mm-dd and not dd-mm
I have attached a screenshot of the problem if that helps
I have uploaded a screenshot to see the problem, I circled the problem in the screenshot as well if it helps
http://www.irhmedia.co.uk/ordertrackingproblem.jpg
I tested it out but the date format is still in mm-dd and not dd-mm
I have attached a screenshot of the problem if that helps
I have uploaded a screenshot to see the problem, I circled the problem in the screenshot as well if it helps
http://www.irhmedia.co.uk/ordertrackingproblem.jpg
Edited by ianhaney, 11 June 2012 - 07:59 AM.
#5
Posted 11 June 2012 - 07:59 AM
ianhaney, on 10 June 2012 - 07:53 PM, said:
I was just wondering how to change the date format from mm-dd to dd-mm
How about this lines in includes/english.php
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('JQUERY_DATEPICKER_FORMAT', 'mm/dd/yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate
You could have them like this
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('JQUERY_DATEPICKER_FORMAT', 'dd/mm/yy'); // see http://docs.jquery.com/UI/Datepicker/formatDate
Community profile | Partner page | NEW : Feedback Chanel
#6
Posted 11 June 2012 - 08:19 AM
Hi George
I changed it to what you said and is still the same
could it be to do with the following line
define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization
I found that in my english.php page
I changed it to what you said and is still the same
could it be to do with the following line
define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization
I found that in my english.php page
#7
Posted 11 June 2012 - 09:04 AM
fixed it, i had to change the date format in the actual orders_tracking.php page
it had $month_$today so changed it to $today and then &month all is good now, all fixed
Thanks for the help though in getting me there, appreciate it
it had $month_$today so changed it to $today and then &month all is good now, all fixed
Thanks for the help though in getting me there, appreciate it
#8
Posted 12 June 2012 - 03:36 PM
ianhaney, on 11 June 2012 - 07:58 AM, said:
its cool fixed the problem, just had to put a @ in front of the putenv
You're probably running on PHP 5.3 which may not allow TZ. You should be using a date.timezone entry in php.ini to set your timezone. As for the actual formatting of the date or time, what @multimixer said should work. If they don't, see if an add-on or something specifies its own format.









