소스 검색

时间格式

lizhen_gitee 9 달 전
부모
커밋
021b8424a1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      application/api/controller/Video.php

+ 2 - 2
application/api/controller/Video.php

@@ -32,7 +32,7 @@ class Video extends Api
                     $val['thumb_image'] = $val['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
                 }
 
-                $val['createtime'] = date('Y-m-d H:i:s',$val['createtime']);
+                $val['createtime'] = $this->datetime_lang($val['createtime']);
 
             }
         }
@@ -51,7 +51,7 @@ class Video extends Api
                 $info['thumb_image'] = $info['video_file'].'?x-oss-process=video/snapshot,t_100,f_png,m_fast';
             }
 
-            $info['createtime'] = date('Y-m-d H:i:s',$info['createtime']);
+            $info['createtime'] = $this->datetime_lang($info['createtime']);
         }
 
         $this->success(1,$info);