Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '12/24 H display in Mail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
12/24 H display in Mail
Authored by: hamarkus on Jun 24, '03 06:38:58PM

Thanks a lot for that hint.

My Mail was reversing for about a year now the 12/24 H settings, when the system settings were 24h it would display in 12h style, and vice versa, although the menu bar clock correctly obeyed to what was set in the system settings.
The only way around was, to quit Mail, switch to 12h in the system settings, restart Mail, which would then display the time in the 24h style, go to system settings switch back to 24h in order to get the menu bar clock back to 24h. Unfortunately, every restart of Mail or even puttting the computer to sleep made Mail to refresh its settings and displaying in the 12h style while the system setting was set to 24h. BTW, the overall setting was German, i.e. 24h.

With the help of your hint, I just switched the descriptions in my localizable.strings file, they now look as follows:

/* The format for hours and minutes in 12 hour format */
"12HOUR_TIME_FORMAT" = "%H:%M";

/* The format for hours and minutes in 24 hour format */
"24HOUR_TIME_FORMAT" = "%1I:%M";

So, my overall system settings are set to 24h, Mail reads that to be 12h (for whatever reason), looks up how to display the time, but now in the 12HOUR line the format of the 24h style is found, and Mail takes that, and I am happy.

P.S.: I'm using project builder to modify these kind of files, anybody any ideas, whether it matters, whether I use windows, mac or unix file endings for these kind of system files, and what file encodings (UTF, etc.) I should use. I'm already changing back the permissions (i.e. owner back to system).



[ Reply to This | # ]
file format
Authored by: ThreeDayMonk on Jun 25, '03 12:10:40AM

They are (at least in the case of Mail) UTF-16, with Unix-style line endings. If you open the file in Project Builder, you can find the information under the Format menu (Line Endings and File Encodings).



[ Reply to This | # ]