DesktopTime icon indicating copy to clipboard operation
DesktopTime copied to clipboard

Does not use system locale

Open kidonng opened this issue 2 years ago • 0 comments

Thanks a lot for this wonderful little gem. I have a small issue though, the date & time should be formatted in system locale, but in fact it uses US format even though my system is set to a different one.

Code responsible for date formatting looks fine:

https://github.com/newmarcel/DesktopTime/blob/5146b11b21624bcd482abccce0925952abe2f16f/DesktopTimeKit/DTILayout/Extensions/NSDateFormatter%2BDTILayoutElement.m#L21-L28

The culprit seems to be that app is launched in a fixed locale (for example these menu items should use system locale, which is not English on my system):

image

I have close to zero knowledge on macOS development, so my assumption may be wrong. I do hope the issue could be resolved.

Again, thanks for this app.

kidonng avatar Jul 28 '23 16:07 kidonng