Explorar o código

修改编译日期格式

weizhengliang %!s(int64=2) %!d(string=hai) anos
pai
achega
3d64064467
Modificáronse 1 ficheiros con 1 adicións e 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;
 }