Is possible to set locale in date &time node or im missing something?

Hi, is possible to set locale in date &time node or im missing something?

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @mredodos , the answer depends on what it is our are tryting to achieve. Date&Time node itself alows you to modify the datetime value to allign with the custom standard but you would need to specify the actual pattern as per luxon - Immutable date wrapper. Though, it does not cater for the custom langage other than that set for your n8n instance.

Generally speaking n8n supports Luxon and that means you can format datetime values in any imaginable way including applying locale (no necessarily in Date&Time node).

If you are self-hosting your n8n instance, you can set the locale with N8N_DEFAULT_LOCALE variable. Otherwise, you can use the power of Luxon to present your datetime value anyway you like.

Below is just an example how datetime could be treated in n8n envolving Date&Time and not using it, including applying locale.

2 Likes

Yes i know i can via expression i can set locale my questions is if in the node exist some options and im missing it :slight_smile:

so Thx for the explanations

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.