From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1 Description of problem: No X Windows is installed. When using command line tools, such as w and uptime, the system time is displayed in a 24 hour clock, as opposed to a 12 hour clock AM/PM. I cannot find any way to changes this. Version-Release number of selected component (if applicable): procps-2.0.13-9.2E How reproducible: Always Steps to Reproduce: 1. run the w or uptime command 2. 3. Actual Results: 09:46:10 up 46 min, 1 user, load average: 0.02, 0.01, 0.00 In this case, it is not after 12, so it appears normal, but still there is no AM stamp as in previous verison. Expected Results: Time should have been displayed in 12 hour format with either AM or PM following Additional info: This is new to version 3 of RHES, I also noticed this in RH 9 and Fedora Core.
I don't understand this report. The time given by "uptime" is the amount of time elapsed since the machine booted, it is neither am nor pm, its just a count of hours. w however, does have a daytime field, the login time, but this field *does* have an am/pm stamp.
Ah, I see uptime also prints the current time. I dunno why that changed format.
Changelog entry seems to be: revision 1.6 date: 2002/09/30 16:52:24; author: riel; state: Exp; lines: +2 -3 remove some cruft (from debian cvs)
rik, do you know why this changed?
Not sure, but the 12 hour time has always been seen as backwards and crufty by users from all over the world, so I didn't mind copying this cleanup from albert cahalan's procps. I guess the date/time format should be dependant on the locale people have set ?
yeah, i think you're supposed to use strftime(), with the %X formating option.
Anything new with this?
Mass reassign to new owner
Fixed procps 3.1.15