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

timezone olson.txt import throws DB errors due to incorrect field sizes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.7, 1.7.1, 1.7.2, 1.8, 1.8.1, 1.8.2
    • 1.8.4, 1.9, 2.0
    • General
    • None
    • PostgreSQL
    • MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE, MOODLE_20_STABLE

    Description

      mdl_timezone.dst_time and mdl_timezone.std_time are varchar(5) which is too small to store a negative time these fields need to be changed to varchar(6).

      Negative times in lib/timezones.txt have been truncated from -11:00 to -11:0 so importing this file files does not throw an error.

      Attachments

        Issue Links

          Activity

            People

              stronk7 Eloy Lafuente (stronk7)
              matt.clarkson Matt Clarkson
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jan/08