gengxin
authorCCC <2393524978@qq.com>
Wed, 25 Oct 2023 01:44:24 +0000 (09:44 +0800)
committerCCC <2393524978@qq.com>
Wed, 25 Oct 2023 01:44:24 +0000 (09:44 +0800)
2.sdk/sdk/gui/lv_watch/mmi_protocol/mmi_protocol_fzd.c

index 1b762fe..c78b84c 100644 (file)
@@ -1735,7 +1735,7 @@ static unsigned int mmi_protocol_fzd_action_send_content_fill_location_data(unsi
 {
        unsigned char * t_ptr = NULL;
        unsigned int t_count = 0;
-       hal_rtc_t cur_time = {0};
+       hal_rtc_t cur_time = {0}, cur_utc_time = {0};
        unsigned int battery_value = Hal_Battery_Get_Status();
        unsigned int sleep_roll_value = 0;
        unsigned int step_value = asl_pedometer_steps_get();
@@ -1745,9 +1745,15 @@ static unsigned int mmi_protocol_fzd_action_send_content_fill_location_data(unsi
        t_ptr = content_buff;
 
        //seperator & time
+#if 1
+       Hal_Rtc_Gettime_Utc(&cur_utc_time);
+       sprintf(t_ptr, ",%02u%02u%02u,%02u%02u%02u", cur_utc_time.tm_year%100, cur_utc_time.tm_mon, cur_utc_time.tm_mday,
+                                                                                               cur_utc_time.tm_hour, cur_utc_time.tm_min, cur_utc_time.tm_sec);
+#else
        Hal_Rtc_Gettime(&cur_time);
     sprintf(t_ptr, ",%02u%02u%02u,%02u%02u%02u", cur_time.tm_year%100, cur_time.tm_mon, cur_time.tm_mday,
                                                                                                cur_time.tm_hour, cur_time.tm_min, cur_time.tm_sec);
+#endif
        t_count = strlen(t_ptr);
 
     //gps