[Loris-dev] Date format

Normand Côté ncote at aviscuriosa.com
Thu Aug 31 10:39:36 EDT 2017


Thanks for the response.

The idea was to have the date format appear in a consistent manner for all
Loris users involved in a particular study, regardless of their OS or
browser settings, for both input and display.  It seems to be a standard of
sorts.



On Thu, Aug 31, 2017 at 10:17 AM, David MacFarlane, Mr <
david.macfarlane2 at mcgill.ca> wrote:

> Hi Normand,
>
>
> Where are you referring to exactly? For data entry, LORIS generally uses
> an HTML5 "date" input type. For internationalization reasons, the HTML date
> input type's visual display is dependent on the user's locale, so that
> users consistently see dates in the format that makes sense to them
> throughout the internet while having a defined way of sending the date to
> the server for processing. As a result, LORIS should consistently use the
> date format for the locale of the user's web browser/operating system for
> display.
>
>
> I just tried changing my computer's settings from Canada to Iran, and the
> format of the date displayed changed as expected. (I assume, I'm not
> familiar enough with Iranian culture to know how they format dates over
> there, but it was different..)
>
>
> So:
>
>
>    1. If the display of dates isn't being shown in accordance with your
>    operating system preferences, it's probably a bug in your web browser* and
>    you should file a bug with them.
>    2. If your operating system locale is correct, but you're not seeing
>    dates in the format that's standard for that region of the world, that's
>    probably a bug in your operating system or web browser. (Though it seems
>    unlikely to me that a bug like this would be discovered by using LORIS..
>    OS/web browser companies have a lot of global users who would catch things
>    like this pretty quickly.)
>    3. If there's somewhere in LORIS displaying dates in a way that's
>    inconsistent with other places in LORIS, that's a bug to report to us that
>    we should fix. (I verified on the "New Profile" page, so you can see how
>    it's displayed there for the expected format for your locale.)
>    4. If you want to change how you see dates, you should probably change
>    your operating system preferences. (As a bonus, this should affect how you
>    see dates everywhere on the internet to be your preferred format.) If that
>    doesn't affect how you see dates in LORIS after restarting your browser,
>    it's probably a bug in your web browser*.
>
>
>  * Unless your web browser is Firefox, which doesn't support HTML date
> elements and LORIS uses a jQuery shim. Unfortunately, it's not
> customizable. Hopefully one day Firefox will add support date for elements,
> we can remove the shim and this will be a moot point.
>
> ------------------------------
> *From:* loris-dev-bounces at bic.mni.mcgill.ca <loris-dev-bounces at bic.mni.
> mcgill.ca> on behalf of Normand Côté <ncote at aviscuriosa.com>
> *Sent:* August 29, 2017 10:02:48 PM
> *To:* loris-dev at bic.mni.mcgill.ca
> *Subject:* [Loris-dev] Date format
>
> Is there a mechanism for changing the date format throughout Loris?  We
> need to accept (and display) dates in this format: DD-MMM-YYYY e.g.
> 01-Jun-2016.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.bic.mni.mcgill.ca/pipermail/loris-dev/attachments/20170831/584af36a/attachment.html>


More information about the Loris-dev mailing list