1
tedsmith
CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/21 19:15

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Every time I update CBB from one version to another, I have this same problem! Except this time, I can't resolve it.

I want to use the UK date and time convention as per the PHP values specifiedhttp://uk.php.net/date, i.e. :

01/01/06 (that being the 1st day of January 2006) instead of 01/01/06 (that being the American version of January 1st 2006)

In the past, I've gone to newbb/language/english/main.php and changes the entry on lines 467-468 from :

define("_MD_MONTHDAY", "n/j G:i:s");

define("_MD_YEARMONTHDAY", "Y/n/j G:i");

to

define("_MD_MONTHDAY", "d/m G:i:s");

define("_MD_YEARMONTHDAY", "d/m/y G:i");

In the past, that has always worked, but not this time. For some reason, it is not working. I've tried deleting conetent of templates_c, updating the module, updating system module, etc. Nothing is making it budge.

Anyone know why? (It would be great for it to be built in as an admin choice - this has been an issue since CBB 1 and I'm sure I suggested it at dev.xoops)

Thanks a lot

Ted

2
tedsmith
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/22 18:17

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Anyone know?

3
tedsmith
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/24 14:43

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


It suddenly dawned on me earlier that it might be because I'd got the 'Modify Templates' option in System Preferences set to No (as my site was a live one), so I changed it to yes. But...alas....still no joy! It sill shows the wrong style of date.

So all I can think of is that it's getting the value from somewhere else now? A different file somewhere?

Ted

4
stange
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/24 15:48

  • stange

  • Just popping in

  • Posts: 7

  • Since: 2005/1/6 2


I have dose defined in the "global.php" file in the "XOOPS_ROOT/language/swedish/" directory, not in the module directory.

Like this:
define("_MONTHDAY", "d/m H:i:s");
define("_YEARMONTHDAY", "y-m-d H:i");

5
tedsmith
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/30 15:23

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


Having read your thread I remembered that. So, all excited, I went and changed the values in the english language file to match what I'd changed in the CBB module. But it is still shoiwng the old date.

I can't remember now whether I updated the system module afterwards though (it was about a week ago late at night and I just thought 'sod it' - it hasn't worked). I might have to check that.

Ideas in the meantime appreciated. Has anyone else (UK folk especially) upgraded to the latest CBB version and XOOPS versions and experienced the same thing?

6
phppp
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/11/30 15:31

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Frameworks/xoops22/language/english/local.php

Have you checked?

7
tedsmith
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2006/12/1 18:09

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


No, I had not. And yes, that was it!!!

Thank you so much phppp. I owe you a pint, if I ever get to meet you of course!

I have just added a FAQ entry about this for future reference for everyone. See it here

Thanks

Ted

8
nachenko
Re: CBB 3.07 - Date and Time Format - Change to UK style
  • 2007/10/3 10:17

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


OK, same problem, fixed edting this frameworks/xoops22/etc file.

But I'm using XOOPS 2.0.16, why am I editing a file in a folder named xoops22? I think CBB should use the default date formats as defined in XOOPS_ROOT/language folder. Keep things simple.

Login

Who's Online

128 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 128


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits