> On Feb. 19, 2014, 11:36 a.m., Sebastian Kügler wrote: > >
Perhaps this would help: http://qt-project.org/doc/qt-4.8/qml-qt.html#formatTime-method It seems to be providing the features needed to display a given time however you want it. In your case the result should probably be something like this: headerTimeText.text = Qt.formatTime(new Date(), "h:m AP") I don't know if javascript's Data object works properly when passed in Qt.formatTime.. If it doesn't then you have to take the C++ route instead. - Mark ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/115870/#review50210 ----------------------------------------------------------- On Feb. 19, 2014, 11:11 a.m., R.Harish Navnit wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://git.reviewboard.kde.org/r/115870/ > ----------------------------------------------------------- > > (Updated Feb. 19, 2014, 11:11 a.m.) > > > Review request for Plasma and Sinny Kumari. > > > Bugs: 330115 and Bug > http://bugs.kde.org/show_bug.cgi?id=330115 > http://bugs.kde.org/show_bug.cgi?id=Bug > > > Repository: plasma-mediacenter > > > Description > ------- > > I just happened to run the plasma-mediacenter in the noon (between 12-1) and > to my surprise I found the time being displayed as "0:11 AM" . But when I run > it now , it displays the time properly. > > Reproducible: Didn't try > > Steps to Reproduce: > 1.Run the plasma-mediacenter > 2.Check the time being displayed > 3.The time displayed will most likely be wrong between 12 noon to 1 pm . > Actual Results: > I just encountered this error once so far . I'll have to wait 24 hours to see > if the error persists . > > Expected Results: > Should display the time as 12:11PM instead of 0:11AM. > > The output of "lsb_release -a" : http://pastebin.kde.org/p4v5s1srq > > The output of "uname -a" : http://pastebin.kde.org/pcncndtwb > > > Diffs > ----- > > mediaelements/mediawelcome/HomeScreenFooter.qml d2c0eb7 > > Diff: https://git.reviewboard.kde.org/r/115870/diff/ > > > Testing > ------- > > after creating the patch , the following steps were carried out > > 1.cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` > 2.sudo make install > > Change the clock to a time in between 12noon and 1pm and run the > plasma-mediacenter. > > The time displays properly ! > > > Thanks, > > R.Harish Navnit > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel