ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #07410
Bug in formatDate sample
-
To:
ubuntu-phone@xxxxxxxxxxxxxxxxxxx
-
From:
David Marceau <uticdmarceau2007@xxxxxxxx>
-
Date:
Mon, 31 Mar 2014 08:45:31 -0400
-
In-reply-to:
<CAMxnTAObzSWdGHQgz=NhD7-hvpxgvD6xp3HdFwbZMRE00Tv9iQ@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
The current sample in the ubuntu-sdk api documentation for Qt.formatDate
seems incorrect.
When month letters in Qt.formatDate are lower-case:
text: "Shift Start Date:" + Qt.formatDate(datePicker.date,
"dd-mmm-yyyy")
It improperly displays:
31-mmm-2014
The month letters should be upper-case:
text: "Shift Start Date:" + Qt.formatDate(datePicker.date,
"dd-MMM-yyyy")
Then it properly displays:
31-Mar-2014
References