Skip to content

Commit 0fbd22a

Browse files
revert Default_Timestamp_Pattern
1 parent 0f362f2 commit 0fbd22a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/main/java/edu/ie3/datamodel/io/factory/timeseries/IconTimeBasedWeatherValueFactory.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import edu.ie3.datamodel.models.StandardUnits;
99
import edu.ie3.datamodel.models.timeseries.individual.TimeBasedValue;
1010
import edu.ie3.datamodel.models.value.WeatherValue;
11-
import edu.ie3.util.TimeUtil;
1211
import edu.ie3.util.quantities.PowerSystemUnits;
1312
import edu.ie3.util.quantities.interfaces.Irradiance;
1413
import java.time.ZonedDateTime;
@@ -39,10 +38,6 @@ public IconTimeBasedWeatherValueFactory() {
3938
super();
4039
}
4140

42-
public IconTimeBasedWeatherValueFactory(TimeUtil timeUtil) {
43-
super(timeUtil);
44-
}
45-
4641
public IconTimeBasedWeatherValueFactory(DateTimeFormatter dateTimeFormatter) {
4742
super(dateTimeFormatter);
4843
}

src/main/java/edu/ie3/datamodel/io/source/couchbase/CouchbaseWeatherSource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public class CouchbaseWeatherSource extends WeatherSource {
3636
private static final Logger logger = LoggerFactory.getLogger(CouchbaseWeatherSource.class);
3737
/** The start of the document key, comparable to a table name in relational databases */
3838
private static final String DEFAULT_TIMESTAMP_PATTERN = "yyyy-MM-dd'T'HH:mm:ssxxx";
39+
3940
private static final String DEFAULT_KEY_PREFIX = "weather";
4041

4142
private final String keyPrefix;

src/test/groovy/edu/ie3/datamodel/io/source/sql/SqlWeatherSourceIconIT.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class SqlWeatherSourceIconIT extends Specification implements TestContainerHelpe
4444
assert res.stderr.empty
4545

4646
def connector = new SqlConnector(postgreSQLContainer.jdbcUrl, postgreSQLContainer.username, postgreSQLContainer.password)
47-
def weatherFactory = new IconTimeBasedWeatherValueFactory(TimeUtil.withDefaults)
47+
def weatherFactory = new IconTimeBasedWeatherValueFactory()
4848
source = new SqlWeatherSource(connector, IconWeatherTestData.coordinateSource, schemaName, weatherTableName, weatherFactory)
4949
}
5050

0 commit comments

Comments
 (0)