fix #LINQT-1500 date time in local time zone
This commit is contained in:
parent
cae5372e97
commit
e42d90f9ee
2 changed files with 4 additions and 4 deletions
|
|
@ -152,10 +152,10 @@ ListView {
|
||||||
property var itemGui: $modelData
|
property var itemGui: $modelData
|
||||||
// Do not use itemAtIndex because of caching items. Using getAt ensure to have a GUI
|
// Do not use itemAtIndex because of caching items. Using getAt ensure to have a GUI
|
||||||
property var previousConfInfoGui : mainItem.model.getAt(index-1)
|
property var previousConfInfoGui : mainItem.model.getAt(index-1)
|
||||||
property var dateTime: itemGui.core ? itemGui.core.dateTimeUtc : UtilsCpp.getCurrentDateTime()
|
property var dateTime: itemGui.core ? itemGui.core.dateTime : UtilsCpp.getCurrentDateTime()
|
||||||
property string day : UtilsCpp.toDateDayNameString(dateTime)
|
property string day : UtilsCpp.toDateDayNameString(dateTime)
|
||||||
property string dateString: UtilsCpp.toDateString(dateTime)
|
property string dateString: UtilsCpp.toDateString(dateTime)
|
||||||
property string previousDateString: previousConfInfoGui ? UtilsCpp.toDateString(previousConfInfoGui.core ? previousConfInfoGui.core.dateTimeUtc : UtilsCpp.getCurrentDateTimeUtc()) : ''
|
property string previousDateString: previousConfInfoGui ? UtilsCpp.toDateString(previousConfInfoGui.core ? previousConfInfoGui.core.dateTime : UtilsCpp.getCurrentDateTime()) : ''
|
||||||
property bool isFirst : ListView.previousSection !== ListView.section
|
property bool isFirst : ListView.previousSection !== ListView.section
|
||||||
property int topOffset: (dateDay.visible && !isFirst? 8 * DefaultStyle.dp : 0)
|
property int topOffset: (dateDay.visible && !isFirst? 8 * DefaultStyle.dp : 0)
|
||||||
property var endDateTime: itemGui.core ? itemGui.core.endDateTime : UtilsCpp.getCurrentDateTime()
|
property var endDateTime: itemGui.core ? itemGui.core.endDateTime : UtilsCpp.getCurrentDateTime()
|
||||||
|
|
|
||||||
|
|
@ -718,8 +718,8 @@ AbstractMainPage {
|
||||||
}
|
}
|
||||||
Text {
|
Text {
|
||||||
text: mainItem.selectedConference
|
text: mainItem.selectedConference
|
||||||
? UtilsCpp.toDateString(mainItem.selectedConference.core?.dateTimeUtc)
|
? UtilsCpp.toDateString(mainItem.selectedConference.core?.dateTime)
|
||||||
+ " | " + UtilsCpp.toDateHourString(mainItem.selectedConference.core?.dateTimeUtc)
|
+ " | " + UtilsCpp.toDateHourString(mainItem.selectedConference.core?.dateTime)
|
||||||
+ " - "
|
+ " - "
|
||||||
+ UtilsCpp.toDateHourString(mainItem.selectedConference.core?.endDateTime)
|
+ UtilsCpp.toDateHourString(mainItem.selectedConference.core?.endDateTime)
|
||||||
: ''
|
: ''
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue