Properties () { @NonNls Properties props = new Properties(); Calendar calendar = Calendar.getInstance(); Date date = myTestDate == null ? calendar.getTime() : myTestDate; SimpleDateFormat sdfMonthNameShort = new SimpleDateFormat("MMM"); SimpleDateFormat sdfMonthNameFull = new SimpleDateFormat("MMMM"); SimpleDateFormat sdfDayNameShort = new SimpleDateFormat("EEE"); SimpleDateFormat sdfDayNameFull = new SimpleDateFormat("EEEE"); SimpleDateFormat sdfYearFull = new SimpleDateFormat("yyyy"); props.setProperty("DATE", DateFormatUtil.formatDate(date)); props.setProperty("TIME", DateFormatUtil.formatTime(date)); props.setProperty("YEAR", sdfYearFull.format(date)); props.setProperty("MONTH", getCalendarValue(calendar, Calendar.MONTH)); props.setProperty("MONTH_NAME_SHORT", sdfMonthNameShort.format(date)); props.setProperty("MONTH_NAME_FULL", sdfMonthNameFull.format(date)); props.setProperty("DAY", getCalendarValue(calendar, Calendar.DAY_OF_MONTH)); props.setProperty("DAY_NAME_SHORT", sdfDayNameShort.format(date)); props.setProperty("DAY_NAME_FULL", sdfDayNameFull.format(date)); props.setProperty("HOUR", getCalendarValue(calendar, Calendar.HOUR_OF_DAY)); props.setProperty("MINUTE", getCalendarValue(calendar, Calendar.MINUTE)); props.setProperty("SECOND", getCalendarValue(calendar, Calendar.SECOND)); props.setProperty("USER", SystemProperties.getUserName()); props.setProperty("PRODUCT_NAME", ApplicationNamesInfo.getInstance().getFullProductName()); props.setProperty("DS", "$"); // Dollar sign, strongly needed for PHP, JS, etc. See WI-8979 props.setProperty(PROJECT_NAME_VARIABLE, project.getName()); return props; }