fulcrum-core
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -40,4 +40,4 @@ 'use strict'; | ||
DateUtils.formatTime = function formatTime(date) { | ||
var hours = _lodash2.default.padLeft(date.getHours(), 2, '0'); | ||
var minutes = _lodash2.default.padLeft(date.getMinutes(), 2, '0'); | ||
var hours = _lodash2.default.padStart(date.getHours(), 2, '0'); | ||
var minutes = _lodash2.default.padStart(date.getMinutes(), 2, '0'); | ||
@@ -60,4 +60,4 @@ return hours + ':' + minutes; | ||
var year = date.getFullYear(); | ||
var month = _lodash2.default.padLeft(date.getMonth() + 1, 2, '0'); | ||
var day = _lodash2.default.padLeft(date.getDate(), 2, '0'); | ||
var month = _lodash2.default.padStart(date.getMonth() + 1, 2, '0'); | ||
var day = _lodash2.default.padStart(date.getDate(), 2, '0'); | ||
@@ -77,4 +77,4 @@ return year + '-' + month + '-' + day; | ||
var year = date.getFullYear(); | ||
var month = _lodash2.default.padLeft(date.getMonth() + 1, 2, '0'); | ||
var day = _lodash2.default.padLeft(date.getDate(), 2, '0'); | ||
var month = _lodash2.default.padStart(date.getMonth() + 1, 2, '0'); | ||
var day = _lodash2.default.padStart(date.getDate(), 2, '0'); | ||
return year + '-' + month + '-' + day; | ||
@@ -81,0 +81,0 @@ } |
{ | ||
"name": "fulcrum-core", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "Fulcrum Core", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/fulcrumapp/fulcrum-core", |
@@ -23,4 +23,4 @@ import Locale from './locale'; | ||
static formatTime(date) { | ||
const hours = _.padLeft(date.getHours(), 2, '0'); | ||
const minutes = _.padLeft(date.getMinutes(), 2, '0'); | ||
const hours = _.padStart(date.getHours(), 2, '0'); | ||
const minutes = _.padStart(date.getMinutes(), 2, '0'); | ||
@@ -43,4 +43,4 @@ return hours + ':' + minutes; | ||
const year = date.getFullYear(); | ||
const month = _.padLeft(date.getMonth() + 1, 2, '0'); | ||
const day = _.padLeft(date.getDate(), 2, '0'); | ||
const month = _.padStart(date.getMonth() + 1, 2, '0'); | ||
const day = _.padStart(date.getDate(), 2, '0'); | ||
@@ -60,4 +60,4 @@ return year + '-' + month + '-' + day; | ||
const year = date.getFullYear(); | ||
const month = _.padLeft(date.getMonth() + 1, 2, '0'); | ||
const day = _.padLeft(date.getDate(), 2, '0'); | ||
const month = _.padStart(date.getMonth() + 1, 2, '0'); | ||
const day = _.padStart(date.getDate(), 2, '0'); | ||
return year + '-' + month + '-' + day; | ||
@@ -64,0 +64,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
693199