rails / mission_control-jobs

Dashboard and Active Job extensions to operate and troubleshoot background jobs
MIT License
611 stars 71 forks source link

Job enqueued time in wrong timezone #186

Closed frenkel closed 2 weeks ago

frenkel commented 2 weeks ago

On the job details page, the on hover time displayed is in UTC for me, while the finished at time is in the correct timezone. I think it's due to the .to_datetime call on this line.

The same issue occurs on the index of finished jobs. Probably because of the .to_datetime call on this line.

I'm not sure whether it's safe to remove the .to_datetime call or if this code should be modified to use the correct timezone, otherwise I would have opened a PR instead.

rosa commented 2 weeks ago

Hey @frenkel, thanks for this report! I think this might have been fixed in #188. Could you double-check? That should use your time zone for Enqueued at.

frenkel commented 2 weeks ago

Yes, works perfectly!