mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
__DATE__ should expand with the name of the month in English
Contributed by STMicroelectronics Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
This commit is contained in:
parent
3b6f1359f0
commit
9b09dce3a0
1 changed files with 2 additions and 1 deletions
|
@ -16,6 +16,7 @@ package org.eclipse.cdt.internal.core.parser.scanner;
|
|||
|
||||
import java.text.DateFormatSymbols;
|
||||
import java.util.Calendar;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.eclipse.cdt.core.parser.IToken;
|
||||
|
||||
|
@ -33,7 +34,7 @@ public final class DateMacro extends DynamicMacro {
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue