Results 1 to 11 of 11

Thread: Date format problem for international users (only months)

  1. #1
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Date format problem for international users (only months)

    I've found a problem with date format, only for foreign users : the month isn't translated, it remains in english

    In the news module configuration i've specified this format : d F Y - H\hi.

    It should give this : 18 décembre 2005 - 23h36-
    but it gives this : 18 December 2005 - 23h36-

    That's strange because when i configure date format for vB, it works. With CMPS, it doesn't.

    Where can i translate this ? I've tested in phrases, but nothing changes.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Date format problem for international users (only months)

    I'm out of town right now and don't really have access to test things, but I'll move this to the bugs forum to make sure I see it when I get home.

  3. #3
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    Thanks Brian ; take your time, "it's not at the minute" (french expression, don't know if you've got the same in english )

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Date format problem for international users (only months)

    "It's not critical" or something along those lines would probably be the English equivalent.

  5. #5
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    Any litte news now ?

  6. #6
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Date format problem for international users (only months)

    Could I get you to submit a support ticket via the Members' Area here so I can have a look at things on your server? I don't have any additional languages set up on my localhost, so it would take a little work in order for me to try and reproduce the problem locally. It would be much easier though if you wouldn't mind allowing me to take a look at things on your server.

  7. #7
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    Ok, no problem.

  8. #8
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    Still no news

  9. #9
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    Here is the solution to correct this :

    In news.php module,

    Find :
    Code:
    			$news['dateposted'] = vbdate($mod_options['portal_news_dateformat'], $news['postdateline'], '', '');
    and put below :

    Code:
    			$months = "/january|febrary|april|may|june|july|august|september|october|november|december/i";
    			if (preg_match($months, $news[dateposted], $monthname))
    			{
    				$monthname[0] = $vbphrase[strtolower($monthname[0])];
    				$news['dateposted'] = preg_replace($months, $monthname[0] , $news['dateposted']);
    
    			}
    It would be nice to include that patch in next release.

  10. #10
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    So many thanks... that's too much lol
    <ironic>
    Thank you.
    </ironic>

  11. #11
    Join Date
    Aug 2004
    Location
    France
    Posts
    68

    Default Re: Date format problem for international users (only months)

    //NEW CODE UPDATE//
    Fix a problem with february month

    In news.php module,

    Find :
    Code:
    			$news['dateposted'] = vbdate($mod_options['portal_news_dateformat'], $news['postdateline'], '', '');
    and put below :

    Code:
    			$months = "/january|february|april|may|june|july|august|september|october|november|december/i";
    			if (preg_match($months, $news[dateposted], $monthname))
    			{
    				$monthname[0] = $vbphrase[strtolower($monthname[0])];
    				$news['dateposted'] = preg_replace($months, $monthname[0] , $news['dateposted']);
    
    			}
    It would be nice to include that patch in next release.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Change Date Format
    By jorg in forum "How Do I..." Questions
    Replies: 2
    Last Post: 12-06-2005, 06:10 PM
  2. International Sales Orders !
    By Alderwazeh in forum Site Feedback & Updates
    Replies: 11
    Last Post: 03-04-2005, 08:33 PM
  3. 3 months no updates ....
    By teksigns in forum Feedback & Suggestions
    Replies: 5
    Last Post: 02-23-2005, 11:52 AM
  4. Date and Time Format
    By Garamond in forum Troubleshooting / "How do I..." Questions
    Replies: 2
    Last Post: 07-20-2004, 04:40 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •