28
         }else{
@@ -38,10 +41,16 @@ public class UploadPresenter implements UploadContract.Presenter {
38 41
     public SessionBean createNewSession() {
39 42
         SessionBean sessionBean = new SessionBean();
40 43
         sessionBean.lensmanId = lensmanId;
41
-        sessionBean.sessionDate=20160813;
44
+        sessionBean.sessionDate=getSessionDateInLongFormat();
42 45
         sessionBean.sessionSeq = sessionSeq+1;
43 46
         sessionBean.sessionId ="chengzhenyu_test"+sessionBean.sessionSeq;
44 47
         sessionList.add(sessionBean);
45 48
         return sessionBean;
46 49
     }
50
+
51
+    private long getSessionDateInLongFormat(){
52
+        SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
53
+        String dateStr = format.format(new Date());
54
+        return Long.parseLong(dateStr);
55
+    }
47 56
 }

Kodo/kodo - Gogs: Go Git Service

1 Ревизии (22dd0dc555fad63420f0d6f43613a067a277c404)

Автор SHA1 Съобщение Дата
  Brightcells feebb32686 Add pc website преди 9 години