Jump to content



Latest News: (loading..)

- - - - -

installed add on


  • Please log in to reply
7 replies to this topic

#1 ONLINE   ianhaney

ianhaney
  • Members
  • 851 posts
  • Real Name:Ian Haney
  • Gender:Male

Posted 10 June 2012 - 07:53 PM

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

#2   joli1811

joli1811
  • Community Sponsor
  • 777 posts
  • Real Name:john dunlop
  • Gender:Male
  • Location:Ireland

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

#3 ONLINE   ianhaney

ianhaney
  • Members
  • 851 posts
  • Real Name:Ian Haney
  • Gender:Male

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

#4 ONLINE   ianhaney

ianhaney
  • Members
  • 851 posts
  • Real Name:Ian Haney
  • Gender:Male

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

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


#5 ONLINE   multimixer

multimixer

    Lemons or Melons ?

  • Partner
  • 4,401 posts
  • Real Name:George Zarkadas
  • Gender:Male
  • Location:Greece

Posted 11 June 2012 - 07:59 AM

View Postianhaney, 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


#6 ONLINE   ianhaney

ianhaney
  • Members
  • 851 posts
  • Real Name:Ian Haney
  • Gender:Male

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

#7 ONLINE   ianhaney

ianhaney
  • Members
  • 851 posts
  • Real Name:Ian Haney
  • Gender:Male

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

#8 ONLINE   MrPhil

MrPhil
  • Members
  • 4,146 posts
  • Real Name:Phil
  • Gender:Male

Posted 12 June 2012 - 03:36 PM

View Postianhaney, on 11 June 2012 - 07:58 AM, said:

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.