Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
Angular - Difference between two dates wrong timezone

I'm trying to obtain the duration of something. I have the start and end time in ms so I do the diff between the two values. But when I try to show it in HH:mm:ss format the timezone is different.

Start time : 1658150216000 | 18.07.2022 15:16:56
End time : 1658160216000 | 18.07.2022 18:03:36
Diff : 10000000 | (should be) 02:46:40 | (shows) 03:46:40

The first two dates are created with GMT+0200 but the diff time is created with GMT+0100, and I don' get to modify this timezone.

I also tried to parse just the number but gets the same result {{ 10000000 | date:'HH:mm:ss' }}

Different time zones

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!