You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What inspired the request?
This issue is inspired when I found that once the file uploaded, it was always saved as midnight 12:00 AM UTC, regardless of the hour, and 12:00 AM UTC was as 7:00 PM EST on the previous day (my local time zone). This discrepancy caused the file date in the front-end page, followed users' local timezone, to appear a day earlier than the intended date. For example, I uploaded the file Nov. 14 would be saved Nov.14 12:00 AM UTC, but shown Nov. 13 locally due to a conversion from UTC to EST. Thus, in order to prevent the time zone conflict, a timestamp with actual time could help.
Overview of the Feature Request
In filePayload.ts, update the creationDate and pulicationDate from {"creationDate": string, "publicationDate": string}
to {"creationDate": string, "creationTime": date, "publicationDate": string, "publicationTime": date}
like {"creationDate": "2024-11-14", "creationTime":"2024-11-15T21:40:25Z", "publicationDate": "2024-11-14", "publicationTime": "2024-11-15T21:40:25Z"}
Also, fileTransformer, fileModel and all related files need to be changed.
ChengShi-1
changed the title
update a "time" field into creationDate and publicationDate in filePayload
update a "time" fields (creationTime and publicationTime) into files
Nov 18, 2024
ChengShi-1
changed the title
update a "time" fields (creationTime and publicationTime) into files
update "time" fields (creationTime and publicationTime) into files
Nov 18, 2024
After discussion, we don't need the timestamp for creationTime and publicationTime. Thus, I transferred the one from dataverse repo to js-dataverse repo. --> #223
What inspired the request?
This issue is inspired when I found that once the file uploaded, it was always saved as midnight 12:00 AM UTC, regardless of the hour, and 12:00 AM UTC was as 7:00 PM EST on the previous day (my local time zone). This discrepancy caused the file date in the front-end page, followed users' local timezone, to appear a day earlier than the intended date. For example, I uploaded the file Nov. 14 would be saved Nov.14 12:00 AM UTC, but shown Nov. 13 locally due to a conversion from UTC to EST. Thus, in order to prevent the time zone conflict, a timestamp with actual time could help.
Overview of the Feature Request
In filePayload.ts, update the creationDate and pulicationDate from
{"creationDate": string, "publicationDate": string}
to
{"creationDate": string, "creationTime": date, "publicationDate": string, "publicationTime": date}
like
{"creationDate": "2024-11-14", "creationTime":"2024-11-15T21:40:25Z", "publicationDate": "2024-11-14", "publicationTime": "2024-11-15T21:40:25Z"}
Also, fileTransformer, fileModel and all related files need to be changed.
Related to #223
The text was updated successfully, but these errors were encountered: