systeminformation 5.16.5 → 5.16.6

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.
Files changed (2) hide show
  1. package/lib/processes.js +5 -5
  2. package/package.json +1 -1
package/lib/processes.js CHANGED
@@ -653,12 +653,12 @@ function processes(callback) {
653
653
  function parseProcesses2(lines) {
654
654
 
655
655
  function formatDateTime(time) {
656
- const month = ('0' + (time.getMonth() + 1).toString()).substr(-2);
656
+ const month = ('0' + (time.getMonth() + 1).toString()).slice(-2);
657
657
  const year = time.getFullYear().toString();
658
- const day = ('0' + time.getDate().toString()).substr(-2);
659
- const hours = time.getHours().toString();
660
- const mins = time.getMinutes().toString();
661
- const secs = ('0' + time.getSeconds().toString()).substr(-2);
658
+ const day = ('0' + time.getDate().toString()).slice(-2);
659
+ const hours = ('0' + time.getHours().toString()).slice(-2);
660
+ const mins = ('0' + time.getMinutes().toString()).slice(-2);
661
+ const secs = ('0' + time.getSeconds().toString()).slice(-2);
662
662
 
663
663
  return (year + '-' + month + '-' + day + ' ' + hours + ':' + mins + ':' + secs);
664
664
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.16.5",
3
+ "version": "5.16.6",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",