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

Improve date handling and formatting

    XMLWordPrintable

Details

    • 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.
    • MOODLE_23_STABLE
    • 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

              dpalou Dani Palou
              fred Frédéric Massart
              Frédéric Massart Frédéric Massart
              Juan Leyva Juan Leyva
              Juan Leyva Juan Leyva
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/Oct/15