~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to app/clock/MainClock.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-29 12:00:28 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: krnekhelesh@gmail.com-20140729120028-821ujpa5c9li7w5a
Remove hardcoded time format in the settings page and follow the user locale

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
     Javascript Month is 0-12 while QDateTime month is 1-12. Hence the -1
51
51
     is required.
52
52
    */
53
 
 
54
 
    /*
55
 
      FIXME: When the upstream QT bug at
56
 
      https://bugreports.qt-project.org/browse/QTBUG-40275 is fixed it will be
57
 
      possible to receive a datetime object directly instead of using this hack.
58
 
    */
59
53
    analogTime: new Date
60
54
                (
61
55
                    localTimeSource.localDateString.split(":")[0],