|
@@ -12,7 +12,12 @@ public class DateUtil {
|
|
|
public static String dFmt = "yyyy-MM-dd HH:mm:ss";
|
|
|
public static String dayFmt = "yyyy-MM-dd";
|
|
|
|
|
|
- public static String getDate(String dateFormat) {
|
|
|
+ public synchronized static String getDate(String dateFormat) {
|
|
|
+ try {
|
|
|
+ Thread.sleep(1L);
|
|
|
+ }catch (Exception e){
|
|
|
+
|
|
|
+ }
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(dateFormat);
|
|
|
Date date = new Date();
|
|
|
return simpleDateFormat.format(date);
|