aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/BurntSushi/toml/internal
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-28 16:10:14 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-28 16:10:14 -0500
commitb06eba3df09a8fcd777b8fe350c2b184758963d1 (patch)
tree0a2ad3aa9537c0457688b7325a3858c1b328bea2 /vendor/github.com/BurntSushi/toml/internal
parentAdd version cmd to docs (diff)
downloadcli-b06eba3df09a8fcd777b8fe350c2b184758963d1.zip
Use checkmate for tests
Diffstat (limited to 'vendor/github.com/BurntSushi/toml/internal')
-rw-r--r--vendor/github.com/BurntSushi/toml/internal/tz.go36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/github.com/BurntSushi/toml/internal/tz.go b/vendor/github.com/BurntSushi/toml/internal/tz.go
deleted file mode 100644
index 022f15b..0000000
--- a/vendor/github.com/BurntSushi/toml/internal/tz.go
+++ /dev/null
@@ -1,36 +0,0 @@
-package internal
-
-import "time"
-
-// Timezones used for local datetime, date, and time TOML types.
-//
-// The exact way times and dates without a timezone should be interpreted is not
-// well-defined in the TOML specification and left to the implementation. These
-// defaults to current local timezone offset of the computer, but this can be
-// changed by changing these variables before decoding.
-//
-// TODO:
-// Ideally we'd like to offer people the ability to configure the used timezone
-// by setting Decoder.Timezone and Encoder.Timezone; however, this is a bit
-// tricky: the reason we use three different variables for this is to support
-// round-tripping – without these specific TZ names we wouldn't know which
-// format to use.
-//
-// There isn't a good way to encode this right now though, and passing this sort
-// of information also ties in to various related issues such as string format
-// encoding, encoding of comments, etc.
-//
-// So, for the time being, just put this in internal until we can write a good
-// comprehensive API for doing all of this.
-//
-// The reason they're exported is because they're referred from in e.g.
-// internal/tag.
-//
-// Note that this behaviour is valid according to the TOML spec as the exact
-// behaviour is left up to implementations.
-var (
- localOffset = func() int { _, o := time.Now().Zone(); return o }()
- LocalDatetime = time.FixedZone("datetime-local", localOffset)
- LocalDate = time.FixedZone("date-local", localOffset)
- LocalTime = time.FixedZone("time-local", localOffset)
-)