Explorar el Código

修改编译日期格式

weizhengliang hace 2 años
padre
commit
3d64064467
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      android_bed/build.gradle

+ 1 - 1
android_bed/build.gradle

@@ -75,7 +75,7 @@ android {
 //获取编译日期
 String getDate() {
     Date date = new Date();
-    String dates = "\""+date.format("yyyy年MM月dd日", TimeZone.getTimeZone("UTC"))+"\"";
+    String dates = "\""+date.format("yyyy/MM/dd", TimeZone.getTimeZone("UTC"))+"\"";
     return dates;
 }