ngx-hana-nameserver-history-viewer 1.1.9-7.beta → 1.1.9-8.beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -570,7 +570,16 @@ function getTimeFromTimeZone(time, timezone) {
570
570
  * Get time formatted with the provided timezone
571
571
  */
572
572
  function getTimeString(time) {
573
- return moment$2(time).format('YYYY-MM-DD HH:mm:ss');
573
+ console.log('3333312', time, '4444434', moment$2(time));
574
+ const dateTime = new Date(time);
575
+ const year = dateTime.getFullYear();
576
+ const month = ('0' + (dateTime.getMonth() + 1)).slice(-2);
577
+ const date = ('0' + dateTime.getDate()).slice(-2);
578
+ const hour = ('0' + dateTime.getHours()).slice(-2);
579
+ const minute = ('0' + dateTime.getMinutes()).slice(-2);
580
+ const second = ('0' + dateTime.getSeconds()).slice(-2);
581
+ return `${year}-${month}-${date} ${hour}:${minute}:${second}}`;
582
+ // return moment(time).format('YYYY-MM-DD HH:mm:ss');
574
583
  }
575
584
  /**
576
585
  * Get the time range string by time array, eg: 2018-10-25 10:10:00 ~ 2018-10-25 12:12:00