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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: Change the way date time is set in console to save with local time zone instead of UTC #6430

Closed
2 tasks done
gaurav-chandra opened this issue Oct 2, 2023 · 3 comments
Assignees
Labels
product / console Console, UI and UX issues

Comments

@gaurav-chandra
Copy link

馃敄 Feature description

I have a date time field and when I use console to save the data it is saved as local time because of using HTML input type date. But when we retrieve the data, we get it in ISO format with timezone: "2023-10-03T13:49:14.723+00:00" which is UTC by default.

image

馃帳 Pitch

Either change the way we save date time in console or add local server time zone instead of UTC otherwise we need to manipulate on the client side and in functions to local time zone.

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@Tanay-ErrorCode
Copy link

@gaurav-chandra Please assign this issue to me.

@gaurav-chandra
Copy link
Author

@Tanay-ErrorCode I don't think I can assign this. Probably someone from the appwrite team can only assign.

@stnguyen90 stnguyen90 added the product / console Console, UI and UX issues label Oct 3, 2023
@stnguyen90 stnguyen90 self-assigned this Oct 3, 2023
@stnguyen90
Copy link
Contributor

@gaurav-chandra, thanks for raising this issue! 馃檹馃徏

The standard behavior when working with datetimes is to send it to the server using UTC and receive it as UTC. When the client application displays it, it is shown in the local timezone. This ensures things are consistent server-side without considering what timezone the server is physically located.

I checked datatime attributes in the Appwrite Console, and it does look like this is precisely how it behaves.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product / console Console, UI and UX issues
Projects
None yet
Development

No branches or pull requests

3 participants