Menu

#42 Translate date / time settings

open
None
5
2005-08-27
2005-06-13
Adriaan
No

I want to change the month, year and day setting in the
season "list" option. Now it says for example "june 2005
sat 13" and i want to chage it to the Dutch standard
13/06/05. I've looked through the code in most files but
couldnt find where i was looking for.

Pleas Help

Discussion

  • Adriaan

    Adriaan - 2005-06-13
    • assigned_to: nobody --> rizzo
     
  • Richard Taylor

    Richard Taylor - 2005-08-04

    Logged In: YES
    user_id=614908

    The setting you are looking for is in the core phpWebsite file:

    \conf\dateSettings.en.php

    (or I presume any localisation specific version of it)

    Edit the PHPWS_DATE_FORMAT variable to match the format you
    would like. The letters used are as described in the php
    Date() function. e.g. http://uk.php.net/date

    This is not specifically a leaguesite setting so it will
    also affect other modules.

     
  • Richard Taylor

    Richard Taylor - 2005-08-04
    • status: open --> closed
     
  • Adriaan

    Adriaan - 2005-08-27

    Logged In: YES
    user_id=1296189

    sorry, but this isn't working. here's the content of the
    mentioned file that according to message should be the
    problem:

    ---
    <?php
    if (!defined("PHPWS_DATE_FORMAT"))
    define("PHPWS_DATE_FORMAT", "d/m/Y");

    if (!defined("PHPWS_TIME_FORMAT"))
    define("PHPWS_TIME_FORMAT", "H:i");

    $date_month = "m";
    $date_day = "d";
    $date_year = "Y";
    $day_mode = "l";
    $day_start = 0; // 0 = Sunday, 1 = Monday
    $time_dif = 0;

    // Deprecated. Use above defines
    $date_order = PHPWS_DATE_FORMAT;
    $time_format = PHPWS_TIME_FORMAT;

    ?>
    -----

     
  • Adriaan

    Adriaan - 2005-08-27
    • status: closed --> open
     

Log in to post a comment.

Auth0 Logo