Skip to content

Conversation

elenitaex5
Copy link

This pull request refactors the src/datetime-picker.tsx file to improve code organization and functionality. The changes include restructuring imports for better readability, adding support for time zones, and ensuring proper handling of date and time operations using the dayjs library.

Code organization and readability:

  • Consolidated and reordered imports for better clarity, grouping related imports together [1] [2].
  • Moved utility functions (areDatesOnSameDay, dateToUnix, etc.) back into the main import block from ./utils for consistency.

Time zone and date handling:

  • Updated the logic in the DateTimePicker component to handle time zones more robustly by using dayjs.tz when a time zone is provided, or defaulting to UTC when specified.

@MLS535
Copy link

MLS535 commented Jul 24, 2025

@farhoudshapouran this pr would be great if you could check it...

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.

2 participants