Jump to content



Photo
- - - - -

installed add on


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1   ianhaney

ianhaney
  • Members
  • 859 posts

Posted 10 June 2012 - 19:53

Hi

I installed the following add on for my 2.3 store and love it

http://www.oscommerc...tributions,1522

I was just wondering how to change the date format from mm-dd to dd-mm

Any ideas

Kind regards

Ian

#2 ONLINE   joli1811

joli1811

    Anybody seen this leprechaun say yeah !!

  • Community Sponsor
  • 2,135 posts

Posted 10 June 2012 - 23:51

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
To improve is to change; to be perfect is to change often.

#3   ianhaney

ianhaney
  • Members
  • 859 posts

Posted 11 June 2012 - 07:46

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

#4   ianhaney

ianhaney
  • Members
  • 859 posts

Posted 11 June 2012 - 07:58

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....kingproblem.jpg

Edited by ianhaney, 11 June 2012 - 07:59.


#5   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,578 posts

Posted 11 June 2012 - 07:59

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


#6   ianhaney

ianhaney
  • Members
  • 859 posts

Posted 11 June 2012 - 08:19

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/...r/#localization

I found that in my english.php page

#7   ianhaney

ianhaney
  • Members
  • 859 posts

Posted 11 June 2012 - 09:04

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

#8   MrPhil

MrPhil
  • Members
  • 5,289 posts

Posted 12 June 2012 - 15:36

its cool fixed the problem, just had to put a @ in front of the putenv

No you didn't. All you did was silence the error message.

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.