|
@@ -15,21 +15,21 @@ import java.util.Date;
|
|
|
*/
|
|
|
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
|
|
|
|
|
- static ThreadLocal<DateFormat> DATE_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
+ protected static ThreadLocal<DateFormat> DATE_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
@Override
|
|
|
protected SimpleDateFormat initialValue() {
|
|
|
return new SimpleDateFormat("yyyy-MM-dd", java.util.Locale.CHINA);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- static ThreadLocal<DateFormat> TIME_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
+ protected static ThreadLocal<DateFormat> TIME_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
@Override
|
|
|
protected SimpleDateFormat initialValue() {
|
|
|
return new SimpleDateFormat("HH:mm:ss", java.util.Locale.CHINA);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- static ThreadLocal<DateFormat> DATE_TIME_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
+ protected static ThreadLocal<DateFormat> DATE_TIME_FORMAT = new ThreadLocal<DateFormat>() {
|
|
|
@Override
|
|
|
protected SimpleDateFormat initialValue() {
|
|
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", java.util.Locale.CHINA);
|