Skip to content

Commit

Permalink
__DATE__ should expand with the name of the month in English
Browse files Browse the repository at this point in the history
Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <[email protected]>
  • Loading branch information
Torbjorn-Svensson committed Aug 30, 2024
1 parent 3b6f135 commit 9b09dce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import java.text.DateFormatSymbols;
import java.util.Calendar;
import java.util.Locale;

import org.eclipse.cdt.core.parser.IToken;

Expand All @@ -33,7 +34,7 @@ private char[] createDate() {
char[] charArray;
StringBuilder buffer = new StringBuilder("\""); //$NON-NLS-1$
Calendar cal = Calendar.getInstance();
DateFormatSymbols dfs = new DateFormatSymbols();
DateFormatSymbols dfs = new DateFormatSymbols(Locale.ENGLISH);
buffer.append(dfs.getShortMonths()[cal.get(Calendar.MONTH)]);
buffer.append(" "); //$NON-NLS-1$
int dom = cal.get(Calendar.DAY_OF_MONTH);
Expand Down

0 comments on commit 9b09dce

Please sign in to comment.