tz
Returns a dictionary containing the name of the current Django time zone for use in template contexts.
def tz(
request: HttpRequest
) - > dict
Returns a dictionary containing the name of the current active time zone for the request context.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The Django HttpRequest object used to determine the current time zone context. |
Returns
| Type | Description |
|---|---|
dict | A dictionary with the key 'TIME_ZONE' mapping to the string name of the current time zone. |