Skip to content

Conversation

Impre-visible
Copy link
Owner

This pull request standardizes the date format handling across the backend and frontend by switching from using LL (month) with slashes to the more conventional MM for months. It updates the allowed date formats and default values to ensure consistency and compatibility throughout the application.

Date format standardization:

  • Updated the default dateFormat in the Company model from 'dd/LL/yyyy' to 'dd/MM/yyyy' in schema.prisma, ensuring the default uses the conventional month notation.
  • Updated the allowed date formats in both the frontend (company.settings.tsx) and backend (date.ts) to use 'MM' instead of 'LL' for months, and replaced formats accordingly. [1] [2]
  • Changed the fallback date format in the backend date formatting utility from 'dd/LL/yyyy' to 'dd/MM/yyyy' to match the new standard.

@Impre-visible Impre-visible linked an issue Aug 8, 2025 that may be closed by this pull request
@Impre-visible Impre-visible merged commit 1102423 into main Aug 8, 2025
@Impre-visible Impre-visible deleted the fix/replace-LL-with-MM/140 branch August 11, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the date format options use (LL) instead of (MM)
1 participant