Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Display time in 24-hour format.
Browse files Browse the repository at this point in the history
When the current locale prints some CJK characters as AM/PM indicator, there will be a layout error. CMDer cannot correctly recognize the width of these characters, and the right alignment will provide less than adequate width, causing some characters to be pushed to an ugly newline.
  • Loading branch information
fhfuih authored and JanDeDobbeleer committed Jan 8, 2019
1 parent 9828e64 commit 2d7380c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themes/Paradox.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Write-Theme {
# Writes the postfix to the prompt
$prompt += Write-Prompt -Object $sl.PromptSymbols.SegmentForwardSymbol -ForegroundColor $lastColor

$timeStamp = Get-Date -UFormat %r
$timeStamp = Get-Date -UFormat %R
$timestamp = "[$timeStamp]"

$prompt += Set-CursorForRightBlockWrite -textLength ($timestamp.Length + 1)
Expand Down

0 comments on commit 2d7380c

Please sign in to comment.