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

Translate PHP date formats to Moment.js one

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      This issue only needs to be tested with one OS, it doesn't need to be tested with both.

      Also, please notice that we won't cover all the cases in this test because there are too many.

      1. Install the app in a device and configure it to use the same language you're using in your Moodle site (web). If you change site during the test, please make sure the language of the app is always the same as in web with the same user.
      2. Login to a 3.6 site where you have at least 1 activity in your timeline (e.g. QA site).
      3. Go to the dashboard, scroll down to the timeline and check that the date displayed above the activities is the same you see in web, with the same format.
      4. In the same timeline, check that the time displayed at the right of each activity has the same format in the app as in web (the time could be different depending on the timezone).
      5. Now go to an assignment that has a due date (e.g. QA site > Activity examples >
        Assignments > Online Text Assignment). Check that the "Last modified" and "Due date" have the same format in the app and in web.
      6. Now go to a course where you have some mod_resource displaying the uploaded date in course page. E.g. Mobile 34 > MM Dev Testing > Resource: File. Check that the uploaded time has the same format in web and in the app.
      7. Go to messaging in a site where you have several discussions. Check that:
        • For discussions received today, you see the time the message was received.
        • For discussions received in the last week, you see the name of the day.
        • For older discussions, you see the full date.
      8. Now change the language of the site and the app to use a language that uses a different format for dates (e.g. if you were using 'en' or 'es', now use 'en_us'). I recommend resetting the app after change, I think dates already loaded aren't updated.
      9. Repeat step 6 with the new language. Check that the format still matches the web format.
      10. Now change the app language to use Kshmer language (it's the one after japanese).
      11. Go to messaging in a site with conversations older than 1 week. Check that the dates displayed in those conversations look ok.
      Show
      This issue only needs to be tested with one OS, it doesn't need to be tested with both. Also, please notice that we won't cover all the cases in this test because there are too many. Install the app in a device and configure it to use the same language you're using in your Moodle site (web). If you change site during the test, please make sure the language of the app is always the same as in web with the same user. Login to a 3.6 site where you have at least 1 activity in your timeline (e.g. QA site). Go to the dashboard, scroll down to the timeline and check that the date displayed above the activities is the same you see in web, with the same format. In the same timeline, check that the time displayed at the right of each activity has the same format in the app as in web (the time could be different depending on the timezone). Now go to an assignment that has a due date (e.g. QA site > Activity examples > Assignments > Online Text Assignment). Check that the "Last modified" and "Due date" have the same format in the app and in web. Now go to a course where you have some mod_resource displaying the uploaded date in course page. E.g. Mobile 34 > MM Dev Testing > Resource: File. Check that the uploaded time has the same format in web and in the app. Go to messaging in a site where you have several discussions. Check that: For discussions received today, you see the time the message was received. For discussions received in the last week, you see the name of the day. For older discussions, you see the full date. Now change the language of the site and the app to use a language that uses a different format for dates (e.g. if you were using 'en' or 'es', now use 'en_us'). I recommend resetting the app after change, I think dates already loaded aren't updated. Repeat step 6 with the new language. Check that the format still matches the web format. Now change the app language to use Kshmer language (it's the one after japanese). Go to messaging in a site with conversations older than 1 week. Check that the dates displayed in those conversations look ok.
    • Fixed Branches:
      MOODLE_36_STABLE
    • Sprint:
      Moodle Mobile 3.6.0

      Description

      We should start using custom Moment.js formats and start using the date format indicated in the PHP langfile

      See https://stackoverflow.com/questions/30186611/php-dateformat-to-moment-js-format

      And we should remove our custom date formats from local_moodlemobileapp

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jan/19