public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; this.strftime = new Strftime(configTimeFmt, Locale.US); //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be // updated when //the timefmt changes. This is what Apache SSI does. setDateVariables(fromConstructor); }
public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; //What's the story here with DateTool.LOCALE_US?? Why?? this.strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US); //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be // updated when //the timefmt changes. This is what Apache SSI does. setDateVariables(fromConstructor); }
public void setConfigTimeFmt( String configTimeFmt, boolean fromConstructor ) { this.configTimeFmt = configTimeFmt; //What's the story here with DateTool.LOCALE_US?? Why?? this.strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US ); //Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be updated when //the timefmt changes. This is what Apache SSI does. setDateVariables( fromConstructor ); }
public void setConfigTimeFmt(String configTimeFmt, boolean fromConstructor) { this.configTimeFmt = configTimeFmt; this.strftime = new Strftime(configTimeFmt, Locale.US); // Variables like DATE_LOCAL, DATE_GMT, and LAST_MODIFIED need to be // updated when // the timefmt changes. This is what Apache SSI does. setDateVariables(fromConstructor); }
protected String formatDate(Date date, String configTimeFmt) { Strftime strftime = new Strftime(configTimeFmt, Locale.US); return strftime.format(date); }
protected String formatDate(Date date, String configTimeFmt) { Strftime strftime = new Strftime(configTimeFmt, DateTool.LOCALE_US); return strftime.format(date); }
protected String formatDate( Date date, String configTimeFmt ) { Strftime strftime = new Strftime( configTimeFmt, DateTool.LOCALE_US ); return strftime.format( date ); }