[-]
[+]
|
Changed |
_service:tar_git:install-history-0.9.16.tar.gz/qml/pages/MainPage.qml
|
@@ -322,8 +322,8 @@
width: Math.min(implicitWidth, col.width * 2/3);
maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideMiddle;
text: page.isLandscape ?
- Format.formatDate(date, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
- : Format.formatDate(date, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ Format.formatDate(dateTime, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ : Format.formatDate(dateTime, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
}
Label{ text: appName ; maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideMiddle; horizontalAlignment: install ? Text.AlignLeft : Text.AlignRight; color: install ? Theme.highlightColor : Theme.primaryColor }
Label{ visible: page.isLandscape; text: version ; maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideLeft; horizontalAlignment: install ? Text.AlignLeft : Text.AlignRight; color: install ? Theme.secondaryHighlightColor : Theme.secondaryColor}
@@ -340,8 +340,8 @@
maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideMiddle;
//text: Format.formatDate(date, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
text: page.isLandscape ?
- Format.formatDate(date, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
- : Format.formatDate(date, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ Format.formatDate(dateTime, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ : Format.formatDate(dateTime, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
}
Label{ text: appName ; maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideMiddle; horizontalAlignment: install ? Text.AlignLeft : Text.AlignRight; color: install ? Theme.highlightColor : Theme.primaryColor }
Label{ visible: !li.unclutter; text: version ; maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideLeft; horizontalAlignment: install ? Text.AlignLeft : Text.AlignRight; color: install ? Theme.secondaryHighlightColor : Theme.secondaryColor}
@@ -354,7 +354,8 @@
width: Math.min(implicitWidth, col.width * 2/3);
maximumLineCount: 1; truncationMode: TruncationMode.Elide; elide: Text.ElideMiddle;
//text: Format.formatDate(date, Formatter.DateMedium) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
- text: Format.formatDate(date, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ //text: Format.formatDate(date, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
+ text: Format.formatDate(dateTime, Formatter.DateMediumWithoutYear) + " " + Format.formatDate(dateTime, Formatter.TimeValue)
}
// repo
Label{ visible: ( install && !li.unclutter )
@@ -435,6 +436,7 @@
const dt;
const d;
const t;
+ const date;
const dateTime;
const repo;
const repotype = "other";
@@ -447,6 +449,7 @@
// see https://codeberg.org/nephros/install-history/issues/16
dt = line[0].split(" ");
d = dt[0].split("-"); t = dt[1].split(":");
+ date = new Date( d[0], d[1], d[2], 0, 0, 0, 0).toISOString();
dateTime = new Date( d[0], d[1], d[2], t[0], t[1], t[2], 0);
/* assign pretty names:
@@ -513,7 +516,7 @@
repotype="openrepos";
}
element = {
- "date": dt[0],
+ "date": date,
"dateTime": dateTime,
"action": line[1].trim(),
"appName": line[2],
|