Skip to content

Commit 58a6f4e

Browse files
committed
Fix boundary typo
1 parent 19e776c commit 58a6f4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ gleam add gtempo@5
1111

1212
This package was written to be used with the [Tempo](https://hexdocs.pm/gtempo/index.html) package, but could be expanded to provide timezone support for other libraries as well! Contributions are welcome! Currently this package is very simple and only supports converting non-naive datetimes to a specific timezone via Tempo; it does not support constructing new datetimes in a specific timezone or assigning a timezone to an existing naive datetime.
1313

14-
Ambiguous datetimes and DST boundries are not handled explicitly by this package, but instead rely on the target timezone package's default handling. It seems like the Elixir package prefers the future time and JavaScript prefers the past time for DST boundries. Once ambiguous datetimes are worked out to be a little more explicit or obvious in this package, there will probably be a v1 release.
14+
Ambiguous datetimes and DST boundaries are not handled explicitly by this package, but instead rely on the target timezone package's default handling. It seems like the Elixir package prefers the future time and JavaScript prefers the past time for DST boundaries. Once ambiguous datetimes are worked out to be a little more explicit or obvious in this package, there will probably be a v1 release.
1515

1616
Supports both the Erlang and JavaScript targets.
1717

test/gtz_test.gleam

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pub fn calculate_offset_twice_test() {
4141
|> should.equal("2024-06-03T06:30:02.334+01:00")
4242
}
4343

44-
pub fn calculate_offset_day_boundry_test() {
44+
pub fn calculate_offset_day_boundary_test() {
4545
let assert Ok(tz) = gtz.timezone("America/New_York")
4646

4747
datetime.literal("2024-01-03T00:05:02.334Z")

0 commit comments

Comments
 (0)