This repository was archived by the owner on Mar 21, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 175
Map all dates from server in HTTP services #482
Copy link
Copy link
Open
Labels
$$ bug-bounty $$https://www.jhipster.tech/bug-bounties/https://www.jhipster.tech/bug-bounties/$100https://www.jhipster.tech/bug-bounties/https://www.jhipster.tech/bug-bounties/enhancementNew feature or requestNew feature or request
Description
Overview of the feature request
It would be better to map every dates we receive from the server to Date objects directly in services (between axios and components).
Motivation for or Use Case
We could use dates as real dates and not sometimes as dates and sometimes as strings.
See for instance how it is handled in an Angular app: https://github.com/jhipster/jhipster-sample-app/blob/master/src/main/webapp/app/entities/operation/operation.service.ts#L60-L65.
The only difference is that we use plain Date in Vue.js instead of moment types in Angular.
We should do this in entities and in admin pages (user & audits).
The Date filter may also change in order to handle date values instead of strings.
Related issues or PR
- Checking this box is mandatory (this is just to show you read everything)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
$$ bug-bounty $$https://www.jhipster.tech/bug-bounties/https://www.jhipster.tech/bug-bounties/$100https://www.jhipster.tech/bug-bounties/https://www.jhipster.tech/bug-bounties/enhancementNew feature or requestNew feature or request