[PR #18775] Display local time instead of UTC while restoring previous session #31599

Open
opened 2026-01-31 09:48:18 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/18775

State: closed
Merged: Yes


Summary of the Pull Request

  • Added logic to convert file time to local time before printing.
    image

Detailed Description of the Pull Request / Additional comments

  • Used FileTimeToLocalFileTime() to convert file time to local time.
  • The result is converted to system time again to ensure minimal impact on the method RestoreFromPath().
  • Tested with different time zones.

PR Checklist

**Original Pull Request:** https://github.com/microsoft/terminal/pull/18775 **State:** closed **Merged:** Yes --- ## Summary of the Pull Request * Added logic to convert file time to local time before printing. ![image](https://github.com/user-attachments/assets/6aa42f01-d7ab-45fb-8286-38b2417d6bd9) ## Detailed Description of the Pull Request / Additional comments * Used FileTimeToLocalFileTime() to convert file time to local time. * The result is converted to system time again to ensure minimal impact on the method RestoreFromPath(). * Tested with different time zones. ## PR Checklist - [x] Closes #18727 - [x] Tests added/passed - [ ] Documentation updated - If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/terminal) and link it here: #xxx - [ ] Schema updated (if necessary)
claunia added the pull-request label 2026-01-31 09:48:18 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#31599