Skip to content

Commit

Permalink
upload: Change clipboard paste file upload name expression
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Aug 11, 2017
1 parent f268a3e commit 1899347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 22 deletions.
28 changes: 7 additions & 21 deletions public/javascripts/common/yobi.Files.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@
/**
* Yobi, Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author JiHan Kim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* Yona, 21st Century Project Hosting SW
* <p>
* Copyright Yona & Yobi Authors & NAVER Corp. & NAVER LABS Corp.
* https://yona.io
**/
yobi.Files = (function(){
var htVar = {};
var htElements = {};
Expand Down Expand Up @@ -570,8 +556,8 @@ yobi.Files = (function(){
*/
function _getSubmitId(){
var now = new Date();
return now.getFullYear() + '' + now.getMonth() + '' + now.getDate()
+ '-' + now.getHours() + '' + now.getMinutes() + '' + now.getSeconds()
return now.getFullYear() + '' + (now.getMonth() + 1) + '-' + now.getDate()
+ '-' + now.getHours() + '' + now.getMinutes() + '-' + now.getSeconds()
+ '-' + now.getMilliseconds();
}

Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/yona-lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1899347

Please sign in to comment.