   // Convert UTC time & date to local time & date
   bool DST = convertToLocal(&time, &year, &month,
                             &day, (double)longitude.toFloat(), true); // true means date and DST conversion
-#endif
+ 
+#endif
+
+  *monthI = month;
+  *dayI = day;
+  *yearI = year;
 
 #ifdef DEBUG
   Serial.print("\nDate ");

  int month = monthS.toInt();
  String dayS = timeS.substring(8, 10);
  int day = dayS.toInt();
  *monthI = month;
  *dayI = day;
  *yearI = year;

  timeS = timeS.substring(length - 8, length - 6); // Strip out the hours
  int time = timeS.toInt();


  int TimeErrorOffset = -3;
  if (((time > 18) && (time < 21)) ||
      (time == 12) ||
      (time == 0)  ||
      (time == 15)) {
    time += (TimeErrorOffset + 2);
  }
