#6184 (How to configure formatting of datetimes, dates and times)
by Luc Saffre · in Developers
Kokkuvõte
Children
Kommentaarid
- 1 aasta, 3 kuud ago by Luc Saffre about #6184 (How to configure formatting of datetimes, dates and times) : I think that fdtl() and fdtf() are not at the right place in the lino.utils.format_date module. This module should not need to care about time zones.
- 1 aasta, 3 kuud ago by Luc Saffre about #6184 (How to configure formatting of datetimes, dates and times) : If your application is supposed to support more than one locale then getting localized format of date/time by changing locale (by means of locale.setlocale()) is discouraged. For explanation why it's a bad idea see Alex Martelli's answer to the the question Using Python locale or equivalent in web a...
- 1 aasta, 3 kuud ago by Luc Saffre about #6184 (How to configure formatting of datetimes, dates and times) : Note that lino.utils.jsgen.py2js() is used in many places, and it converts date, time and datetime values to js. And it uses the xxx_format_strftime attributes of Site.
- 1 aasta, 3 kuud ago by Luc Saffre about #6184 (How to configure formatting of datetimes, dates and times) : We have multiple settings on Site (date_format_strftime, date_format_extjs, date_format_regex), we have lino.utils.format_date, but they were designed for Lino sites where all users live in the same time zone. Then we have a template notify/summary.eml where we are doing twice something like {% set ...
- 1 aasta, 3 kuud ago by Luc Saffre about #6184 (How to configure formatting of datetimes, dates and times) : Created new Ticket #6184 (How to configure formatting of datetimes, dates and times).