Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-21965

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.8
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
      None
    • Environment:
      php, win XP
    • Database:
      Any
    • Difficulty:
      Difficult
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      Dear,
      I use this to login to website but during i open login page, i see error about date appears.
      Please help me to sovle it.

      I have coded in \KT_functions.inc.php file:
      <?php
      // Array definitions

      // Start Variable definitions
      $KT_db_date_format = "yyyy-mm-dd";
      $KT_db_time_format = "HH:mm:ss";
      $KT_screen_date_format = "d/m/yy";
      $KT_screen_time_format = "h:mm:ss t";
      $KT_prefered_image_lib = "gd";
      $KT_prefered_imagemagick_path = "";
      $KT_prefered_tidy_path = "";
      $KT_prefered_aspell_path = "";
      $KT_file_mode = "644";
      $KT_folder_mode = "755";
      $KT_default_image_quality = "80";
      // End Variable definitions
      ?>

      Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\KT_functions.inc.php on line 679

      Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\KT_functions.inc.php on line 680

      Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\KT_functions.inc.php on line 681on line 679

      Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\KT_functions.inc.php on line 680

      Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Krasnoyarsk' for '7.0/no DST' instead in C:\xampp\htdocs\www\includes\common\KT_functions.inc.php on line 681

      Thank you,

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                moodle.com moodle.com
                Reporter:
                minhthuan0032000 thuan pham
                Tester:
                Nobody
                Participants:
                Component watchers:
                Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: