Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include time for from timestamp #356

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

speed2exe
Copy link
Contributor

@speed2exe speed2exe commented Dec 19, 2024

Add a new constructor for DateCellData, from_timestamp_include_time, which set include_time to true during initialization.

Copy link
Contributor

@richardshiue richardshiue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to be sure, which use case are you trying to accomplish? On zapier, would it be possible to create a timestamp field instead with TimestampTypeOption which has include_time set to true? Or would you like to change the UX for date field type in general?

@speed2exe
Copy link
Contributor Author

speed2exe commented Dec 19, 2024

@richardshiue Use case is after inserting into a Date cell using http (e.g. Zapier), since the include_time is not set to true, this will make hide the time in the app. After user set the cell to include time, it overwrites the time (of source timestamp) with current time instead.

@richardshiue
Copy link
Contributor

Got it

@appflowy appflowy merged commit c45a212 into main Dec 19, 2024
6 checks passed
@appflowy appflowy deleted the fix/date-init-timestamp branch December 19, 2024 08:43
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.

3 participants