Skip to content

Commit

Permalink
fixup! docs: rename inTimeZone to toAbsolute and toDateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken committed Jun 29, 2020
1 parent 752b8b2 commit 3ccbf9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/cookbook/storageTank.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const tankMidnight = Temporal.now
.toDateTime(tankTimeZone)
.getDate()
.toDateTime(Temporal.Time.from('00:00'))
.toDateTime(tankTimeZone);
.toAbsolute(tankTimeZone);
const atOrAfterMidnight = (x) => Temporal.Absolute.compare(x, tankMidnight) >= 0;
const dataStartIndex = tankDataX.findIndex(atOrAfterMidnight);
const labelFormatter = new Intl.DateTimeFormat(undefined, {
Expand Down

0 comments on commit 3ccbf9a

Please sign in to comment.