Skip to content

Commit

Permalink
appropriate TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil authored and mbostock committed Jan 17, 2023
1 parent 7df4112 commit ada81a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,9 @@ export function maybeInterval(interval) {
range: (lo, hi) => rangei(Math.ceil(lo / n), hi / n).map((x) => n * x)
};
}
// TODO local time intervals (or better, an explicit timeZone option).
if (typeof interval === "string") {
return maybeUtcInterval(interval); // TODO local time intervals?
return maybeUtcInterval(interval);
}
if (typeof interval.floor !== "function" || typeof interval.offset !== "function") {
throw new Error("invalid interval; missing floor or offset method");
Expand Down

0 comments on commit ada81a0

Please sign in to comment.