   }
   //Adjust for weeks
   targetDate += (NthWeek-1)*7;
-  return new DateTime ( year, month, targetDate, hour, min );
+  return DateTime ( year, month, targetDate, hour, min );
 }
  
 void setDst( DateTime current )

bool pressed = false;
bool changingModes = false;

// helper to get time for testing if no UTC available
DateTime getCurrent()
{
  DateTime ret;

       inDst = 0;
  Serial.print("Setting DST to ");
  Serial.println(inDst);
  char buffer[100];
  sprintf(buffer, "Current  is %d/%d/%d %d:%d", (int)current.month(), (int)current.day(), (int)current.year(), (int)current.hour(), (int)current.minute() );
  Serial.println(buffer);
  sprintf(buffer, "StartDst is %d/%d/%d %d:%d", (int)startDst.month(), (int)startDst.day(), (int)startDst.year(), (int)startDst.hour(), (int)startDst.minute() );
  Serial.println(buffer);
  sprintf(buffer, "EndDst   is %d/%d/%d %d:%d", (int)endDst.month(), (int)endDst.day(), (int)endDst.year(), (int)endDst.hour(), (int)endDst.minute() );
  Serial.println(buffer);

}

/*******************************************************************************
