Skip to content

Commit ca716ec

Browse files
committed
fix month dirname
prepend 0 only when month <= 9
1 parent c6ef4f8 commit ca716ec

6 files changed

+7
-7
lines changed

demo/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<span class="test-progress-text"></span>
1111
<hr>
1212
<script src="jquery.min.js"></script>
13-
<script src="../dist/deep_uploader.js"></script>
13+
<script src="../dist/deep-uploader.js"></script>
1414
<script src="application.js"></script>
1515
</body>
1616
</html>

dist/deep-uploader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ var BaseUploader = (function () {
404404
var date = new Date();
405405
var year = date.getFullYear();
406406
var month = date.getMonth() + 1;
407-
month = month > 10 ? month : '0' + month;
407+
month = month > 9 ? month : '0' + month;
408408

409409
var fileExt = this.file.name.split('.').pop() || 'tmp';
410410
var fileName = _uuid2['default'].v4();

dist/deep-uploader.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)