Commit 876fdf13 by sikang

update script

parent 5e1bed20
...@@ -157,6 +157,12 @@ then ...@@ -157,6 +157,12 @@ then
else else
./refresh_gponline.sh ./refresh_gponline.sh
fi fi
elif (($commod == '10000'))
then
cd ..
git reset --hard origin/master
else else
echo "找不到编号" echo "找不到编号"
fi fi
...@@ -149,7 +149,7 @@ public class LatestLoanAppBean implements Parcelable { ...@@ -149,7 +149,7 @@ public class LatestLoanAppBean implements Parcelable {
} }
public String getDueDate() { public String getDueDate() {
return this.dueDate.replace("T"," ").replace("Z",""); return this.dueDate;
} }
public void setDueDate(String dueDate) { public void setDueDate(String dueDate) {
...@@ -333,7 +333,7 @@ public class LatestLoanAppBean implements Parcelable { ...@@ -333,7 +333,7 @@ public class LatestLoanAppBean implements Parcelable {
} }
public String getCreateTime() { public String getCreateTime() {
return this.createTime.replace("T", " ").replace("Z", ""); return this.createTime;
} }
public void setCreateTime(String createTime) { public void setCreateTime(String createTime) {
......
...@@ -193,9 +193,27 @@ public class StringFormat { ...@@ -193,9 +193,27 @@ public class StringFormat {
/** /**
* 格式化时间 * 格式化时间
*/ */
// public static String convertTime(String srcTime, String formatStyle) {
// String format = srcTime.contains("T") ? "yyyy-MM-dd'T'HH:mm:ss'Z'" : "yyyy-MM-dd HH:mm:ss";
// SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
// simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00"));
// SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle);
// simpleDateFormatLocal.setTimeZone(TimeZone.getDefault());
// try {
// if (TextUtils.isEmpty(srcTime)) {
// return "0";
// }
// Date srcDate = simpleDateFormat.parse(srcTime);
// String targetTime = simpleDateFormatLocal.format(srcDate);
// return targetTime;
// } catch (ParseException e) {
// e.printStackTrace();
// }
//
// return "0";
// }
public static String convertTime(String srcTime, String formatStyle) { public static String convertTime(String srcTime, String formatStyle) {
String format = srcTime.contains("T") ? "yyyy-MM-dd'T'HH:mm:ss'Z'" : "yyyy-MM-dd HH:mm:ss"; SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format);
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00")); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00"));
SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle); SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle);
simpleDateFormatLocal.setTimeZone(TimeZone.getDefault()); simpleDateFormatLocal.setTimeZone(TimeZone.getDefault());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment