Force change from Uppercase AM/PM to Lowercase in Time Regional settings through GP

Hi... I would like to be able to modify group policy so that AM and PM in regional settings are lowercase by default for all users... is this possible?
vjstechAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jcimarronCommented:
vjstech--
This code should do it

Source:  James Jithin]
public class Timeis {
    public static void main(String s[]) {
        long ts = 1022895271767L;
        SimpleDateFormat sdf = new SimpleDateFormat(" MMM d 'at' hh:mm a");
        // CREATE DateFormatSymbols WITH ALL SYMBOLS FROM (DEFAULT) Locale
        DateFormatSymbols symbols = new DateFormatSymbols(Locale.getDefault());
        // OVERRIDE SOME symbols WHILE RETAINING OTHERS
        symbols.setAmPmStrings(new String[] { "am", "pm" });
        sdf.setDateFormatSymbols(symbols);
        String st = sdf.format(ts);
        System.out.println("time is " + st);
    }
}

Open in new window

David Johnson, CD, MVPOwnerCommented:
type over AM with am and PM with pm in the regional settings
user settings\preferences\control panel settings\regional options
David Johnson, CD, MVPOwnerCommented:
to see the results
do a gpupdate /force
taskkill /im explorer.exe
explorer.exe

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

vjstechAuthor Commented:
I type over regional settings in lowercase on the DC in Group Policy under User Configuration/Preferences/Control Panel Settings/Regional Options/Time and save them.  However when I go back into the regional settings the settings are showing in uppercase again... they do not stay in lowercase.
David Johnson, CD, MVPOwnerCommented:
did you press f5 to save the changes it will change from a red border to a green border
vjstechAuthor Commented:
Yes... pressed F5, changed from red to green.  Pressed on Apply, then OK.  However when I go back in, still changes back to uppercase AM and PM.
vjstechAuthor Commented:
F5 did work, thanks.  I have a couple of other problems.  

The location in the Regional Options tab under User Configuration is greyed out and set to United States - not sure if this can be changed.  I can force the User Locale to be English (Australia) however then the group policy update fails.  

When I have changed the AM and PM to lowercase it has affected the date settings in one of our internal applications... this may be a programming glitch on our part... just thought it was unusual that this would affect the date.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.