|
|
@@ -269,7 +269,7 @@ public class MockDataTask
|
|
|
double fastFluct = 1 - phys.fastAmp * (0.5 + 0.5 * Math.sin(2 * Math.PI * tH / phys.fastT + phys.fastP));
|
|
|
double actual = clamp(theoretical * (1 - 0.90 * cloud) * fastFluct * phys.availability / 100.0, 0, theoretical);
|
|
|
|
|
|
- Date tmDate = tm.toInstant().toDate();
|
|
|
+ Date tmDate = Date.from(tm.toInstant());
|
|
|
|
|
|
DataWeatherLocal weather = new DataWeatherLocal();
|
|
|
weather.setTm(tmDate);
|