Skip to content
This repository was archived by the owner on Mar 21, 2021. It is now read-only.
This repository was archived by the owner on Mar 21, 2021. It is now read-only.

Map all dates from server in HTTP services #482

@hdurix

Description

@hdurix
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

  • Checking this box is mandatory (this is just to show you read everything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    $$ bug-bounty $$https://www.jhipster.tech/bug-bounties/$100https://www.jhipster.tech/bug-bounties/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions