@@ -157,7 +157,7 @@ void TimeService::setSyncInterval(unsigned long seconds)
157157void TimeService::setTimeZoneData (long offset, unsigned long dst_until)
158158{
159159 if (_timezone_offset != offset || _timezone_dst_until != dst_until) {
160- DEBUG_DEBUG (" ArduinoIoTCloudTCP ::%s offset: %d dst_unitl %ul" , __FUNCTION__, offset, dst_until);
160+ DEBUG_DEBUG (" TimeService ::%s offset: %d dst_unitl %ul" , __FUNCTION__, offset, dst_until);
161161 _timezone_offset = offset;
162162 _timezone_dst_until = dst_until;
163163 _is_tz_configured = true ;
@@ -196,29 +196,29 @@ unsigned long TimeService::getTimeFromString(const String& input)
196196 static const int expected_parameters = 6 ;
197197
198198 if (input == nullptr || input.length () != expected_length) {
199- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid input length" , __FUNCTION__);
199+ DEBUG_ERROR (" TimeService ::%s invalid input length" , __FUNCTION__);
200200 return 0 ;
201201 }
202202
203203 int scanned_parameters = sscanf (input.c_str (), " %d %s %d %d:%d:%d" , &year, s_month, &day, &hour, &min, &sec);
204204
205205 if (scanned_parameters != expected_parameters) {
206- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid input parameters number" , __FUNCTION__);
206+ DEBUG_ERROR (" TimeService ::%s invalid input parameters number" , __FUNCTION__);
207207 return 0 ;
208208 }
209209
210210 char * s_month_position = strstr (month_names, s_month);
211211
212212 if (s_month_position == nullptr || strlen (s_month) != 3 ) {
213- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid month name, use %s" , __FUNCTION__, month_names);
213+ DEBUG_ERROR (" TimeService ::%s invalid month name, use %s" , __FUNCTION__, month_names);
214214 return 0 ;
215215 }
216216
217217 month = (s_month_position - month_names) / 3 ;
218218
219219 if (month < 0 || month > 11 || day < 1 || day > 31 || year < 1900 || hour < 0 ||
220220 hour > 24 || min < 0 || min > 60 || sec < 0 || sec > 60 ) {
221- DEBUG_ERROR (" ArduinoIoTCloudTCP ::%s invalid date values" , __FUNCTION__);
221+ DEBUG_ERROR (" TimeService ::%s invalid date values" , __FUNCTION__);
222222 return 0 ;
223223 }
224224
0 commit comments