This repository has been archived by the owner on Mar 21, 2021. It is now read-only.
Map all dates from server in HTTP services #482
Labels
$$ bug-bounty $$
https://www.jhipster.tech/bug-bounties/
enhancement
New feature or request
$100
https://www.jhipster.tech/bug-bounties/
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
#479
#464
The text was updated successfully, but these errors were encountered: