From 067e1a9cc6882e3abbb4f2eee4fecf517e33cfa4 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Fri, 30 Aug 2024 14:52:37 +0800 Subject: [PATCH] =?utf8?q?=E5=80=92=E8=AE=A1=E6=97=B6=E7=95=8C=E9=9D=A2?= =?utf8?q?=E4=BD=BF=E7=94=A8%02d=E8=A7=A3=E5=86=B3=E8=AE=A1=E6=95=B0?= =?utf8?q?=E5=B0=91=E4=BA=8E=E4=B8=A4=E4=BD=8D=E6=95=B0=E8=A1=A5=E9=9B=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/stopwatch/src/MainStopWatchPresenter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp index 540ec3514..f4e911078 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/stopwatch/src/MainStopWatchPresenter.cpp @@ -203,11 +203,11 @@ namespace OHOS char *PickerData = (char *)malloc(128); if (lastRecordTime == 0) // 如果是第一次标记 { - sprintf(PickerData, "%d %s +%s", RecordCycleNumber, formattedTime, formattedTime); + sprintf(PickerData, "%02d %s +%s", RecordCycleNumber, formattedTime, formattedTime); } else { - sprintf(PickerData, "%d %s +%s", RecordCycleNumber, formattedTime, formattedDiff); + sprintf(PickerData, "%02d %s +%s", RecordCycleNumber, formattedTime, formattedDiff); } m_listdata->PushFront(const_cast(PickerData)); m_listadapter->SetData(m_listdata); -- 2.17.1