Skip to content

Commit 256a6f9

Browse files
committed
fix: update water_level_date_time to be timezone naive and have backend assign offset
1 parent 6b82f7e commit 256a6f9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/features/water-level-csv.feature

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Feature: Bulk upload water level entries from CSV via CLI
3737
| depth_to_water_ft |
3838
| data_quality |
3939
And each "well_name_point_id" value matches an existing well
40-
And "measurement_date_time" values are valid ISO 8601 timestamps with timezone offsets (e.g. "2025-02-15T10:30:00-08:00")
40+
And "water_level_date_time" values are valid ISO 8601 timezone-naive datetime strings (e.g. "2025-02-15T10:30:00")
4141
And the CSV includes optional fields when available:
4242
| optional field name |
4343
| field_staff_2 |
@@ -74,7 +74,9 @@ Feature: Bulk upload water level entries from CSV via CLI
7474
"""
7575
oco water-levels bulk-upload --file ./water_levels.csv
7676
"""
77-
Then the command exits with code 0
77+
# assumes users are entering datetimes as Mountain Time becuase well location is restricted to New Mexico
78+
Then all datetime objects are assigned the correct Mountain Time timezone offset based on the date value.
79+
And the command exits with code 0
7880
And all water level entries are imported
7981
And stderr should be empty
8082

0 commit comments

Comments
 (0)