|
|
[-]
[+]
|
Changed |
_service:tar_git:install-history-0.10.1+git1.tar.gz/qml/js/worker.js
^
|
@@ -76,8 +76,12 @@
dt = line[0].split(" ");
d = dt[0].split("-"); t = dt[1].split(":");
// months are counted from 0-11, so do a d[1] - 1
- date = new Date( d[0], d[1] - 1, d[2], 0, 0, 0, 0).toISOString();
- dateTime = new Date( d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0);
+ dateTime = new Date( d[0], d[1] - 1, d[2], t[0], t[1], t[2], 0);
+ // make a second date clamped to 00:00:01 local time,
+ // otherwise the section has empty parts for each hour(?)
+ const udate = new Date( d[0], d[1] - 1, d[2], 0, 0, 1, 0);
+ // convert to local time string
+ date = new Date(udate.getTime() - udate.getTimezoneOffset()*60000).toISOString()
/* assign pretty names:
*
|
@@ -1,6 +1,6 @@
Name: install-history
Summary: Shows when packages have been installed or uninstalled
-Version: 0.10.0
+Version: 0.10.1
Release: 1
Group: Applications
#License: Apache 2.0
@@ -27,7 +27,7 @@
- Utility
Custom:
Repo: %{url}
- Icon: https://sailfishos.org/content/sailfishos-docs//sailfish-content-graphics-default/latest/images/icon-m-file-rpm.svg
+ PackageIcon: https://sailfishos.org/content/sailfishos-docs//sailfish-content-graphics-default/latest/images/icon-m-file-rpm.svg
Screenshots:
- %{url}/raw/branch/master/Screenshot_001.png
- %{url}/raw/branch/master/Screenshot_002.png
|