Skip to content

Standardize date handling: use date-fns everywhere and remove redundant code #28

Description

@TheRealSeber

Summary

Standardize all date handling in the codebase by exclusively using date-fns. Refactor existing code to replace all custom date utilities, translations, and date-handling functions with their equivalents from date-fns. Remove any redundant or duplicate functions and translations that can be handled by date-fns.

Tasks

  • Audit the codebase for all date manipulation, formatting, and parsing functions.
  • Replace any custom date functions (including utilities and helpers) with date-fns equivalents.
  • Remove redundant translations for date formatting/functions that are now handled by date-fns (including any i18n date formatting logic).
  • Ensure consistent usage of date-fns throughout all Svelte and TypeScript files.
  • Update documentation or code comments as necessary.

Acceptance Criteria

  • All date logic in the codebase uses date-fns (no custom or legacy date utilities remain).
  • All redundant or replaced functions and translations are deleted.
  • Code is clean and conforms to project standards.

Note: Do not use Moment.js or other date libraries. Only use date-fns for all date operations.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions