更改时间格式

2024-05-20 18:45:52 发布

您现在位置:Python中文网/ 问答频道 /正文

根据django documentation

if USE_L10N is set to True, then the locale-dictated format has higher precedence and will be applied instead

首先,我想知道这个地区指示的格式是在哪里定义的,以及是否有任何可能在某个地方为给定的地区自定义它?在


Tags: thetodjangotrueformatifisuse
1条回答
网友
1楼 · 发布于 2024-05-20 18:45:52

here

When it’s enabled, two users accessing the same content may see dates, times and numbers formatted in different ways, depending on the formats for their current locale.

因此,这是一个以受众/客户为目标的内容(例如,如果我在纽约访问网站,我将在东部时间获得我的时间,而您可能会在伦敦获得GMT时间)

相关问题 更多 >