Add NewCalendar helper, make timezone string constant, add version constant

This commit is contained in:
2024-01-28 05:03:35 -06:00
parent 6ccc00eda3
commit 3f98a5d5d6
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -31,6 +31,9 @@ var (
centralTime *time.Location
)
const Version = "0.0.1"
const CentralTimezone = "America/Chicago"
func init() {
// Load environment variables
if err := godotenv.Load(); err != nil {
@@ -40,7 +43,7 @@ func init() {
ctx = context.Background()
var err error
centralTime, err = time.LoadLocation("America/Chicago")
centralTime, err = time.LoadLocation(CentralTimezone)
if err != nil {
panic(err)
}