1

i have issues with wrong dates between backend and frontend.

The TimeStamp is saved in the DB like this: 15.11.2022, 08:45:00 (Datatype: Timestamp)

The Frontend is getting this Date: 2022-11-15T07:45:00.000+00:00 (Datatype: Date)

My TimeZone is GMT+1. What i need to configure that i get the right date?

1
  • More context please, how do you get the data, where do you use it, how do you use it? Commented Nov 15, 2022 at 19:48

1 Answer 1

1

This is a JavaScript Timestamp equivalent. Consider using the Angular Date Pipe

<ng-container>{{yourTimestampVariable | date: 'shortDate'}}</ng-container>

Documentation on that can be found here: https://angular.io/api/common/DatePipe

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you this solved my problem. This: start | date: "HH:mm" fixxed the hour difference. Now i got the right hour displayed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.