FreeThreads
Published in

FreeThreads

panic: time: missing Location in call to Date

panic: time: missing Location in call to Date

goroutine 1 [running]:
time.Date(0x7e6, 0x1, 0x13, 0x0, 0x0, 0x0, 0x0, 0x0, 0x40ebdf, 0xc0006b0000, …)
/usr/local/go/src/time/time.go:1344 +0x5c5

The calling code is as follows -

jakarta, _ := time.LoadLocation("Asia/Jakarta")end := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, jakarta)

Solution

--

--

--

Discuss design, distributed systems, developer tools, programming languages

Recommended from Medium

How to Use Flutter for Hybrid Development: Alibaba’s Open Source Code Instance

Protocol and limiting protocol adoption

Coding Convention: Why your team should adopt one quickly

Hive query formatter using Python

Python — Sending Push Notifications To Your Phone

AutomationEdge Competitors & Alternatives

Get approve from Facebook

Testing open-source in the battlefield

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simplify Complexity

Simplify Complexity

Golang, Distributed Systems, File Systems, Python, C/C++, Linux

More from Medium

Integration tests, Docker and how it all Go(es) together

Echo 101: Timeout middleware in Echo framework

What is Concurrency in Golang ?

How to upgrade Golang Compiler from version 1.13.5 to version 1.17.1

Replacing a computer component is just like replacing a Go-Compiler