Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1048

Improve date handling and formatting

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Install momentjs (bower install).
      2. Check that the behavior of chat and messages hasn't changed, except that now some dates are translated if the app's language changes.
      3. Check that assignment dates are now translated.
      4. Check that the dates in choice open/close messages are now translated.
      5. Check that the "time ago" in forums works fine. Also check that dates shown in discussions/posts work fine.
      6. Check that changing the app's language also translates the dates shown.
      Show
      Install momentjs (bower install). Check that the behavior of chat and messages hasn't changed, except that now some dates are translated if the app's language changes. Check that assignment dates are now translated. Check that the dates in choice open/close messages are now translated. Check that the "time ago" in forums works fine. Also check that dates shown in discussions/posts work fine. Check that changing the app's language also translates the dates shown.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE

      Description

      We should pulling moment.js and rely only on that library when working with dates.

      Also, filters and any code outputting should be localised the same way it's in Moodle: using language strings like this: https://github.com/FMCorz/moodle/blob/master/lang/en/langconfig.php#L39

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Frédéric Massart Frédéric Massart
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Oct/15