Closed Bug 1917446 Opened 1 year ago Closed 1 year ago

PR_FormatTimeUSEnglish() doesn't support "%e" format specifier

Categories

(NSPR :: NSPR, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benc, Assigned: KaiE)

References

Details

Attachments

(1 file)

PR_FormatTimeUSEnglish() is billed as a locale-ignoring version of strftime(), but it doesn't support "%e" as a format specifier.

From the linux strftime() manpage:

%e     Like  %d,  the  day  of the month as a decimal number, but a leading
              zero is replaced by a space.

Not exactly a big deal, but figured I should log it somewhere!

And in the interests of leaving breadcrumbs to follow: are the PR_* time functions still considered OK to use, or should people avoid them in favour of something else?

Component: Networking → NSPR
Product: Core → NSPR
Version: unspecified → other

The severity field is not set for this bug.
:KaiE, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(kaie)

(In reply to Ben Campbell from comment #1)

And in the interests of leaving breadcrumbs to follow: are the PR_* time functions still considered OK to use, or should people avoid them in favour of something else?

Ok to use in C/C++ code. IMHO.

Severity: -- → S4
Flags: needinfo?(kaie)
Assignee: nobody → kaie
Status: NEW → ASSIGNED

Ben, if you want that added, please test and review.

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 4.37
Blocks: 1975156
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: