fix(day): render unix timestamps in the time zone the caller asked for (#1659) Fixes # ## Proposed Changes - `pkg/day.Format` now applies the `tz` argument it already loaded with `time.Time.In`; before, `time.LoadLocation(tz)` was called and its result dropped, so every rendered date was the server's local zone. - An empty or unresolvable zone keeps the previous local-time behaviour, so nothing shifts when the site time zone is missing. - Adds a table-driven `TestFormatTimezone` (UTC / Tokyo / New York / Kolkata / Los Angeles) plus a fallback test. ## Additional Info Reproducer: `Format(1700000000, "YYYY-MM-DD HH:mm", "Asia/Tokyo")` returned `2023-11-14 22:13` instead of `2023-11-15 07:13`. This is the helper behind the `translatorTimeFormat` email/UI templates and behind the "suspended until" text that passes `"UTC"` explicitly (`internal/schema/user_schema.go:202`). No new dependency; `go mod tidy` and `golangci-lint v2.6.2` (`make lint`) are clean.
A Q&A platform software for teams at any scales. Whether it’s a community forum, help center, or knowledge management platform, you can always count on Answer.
To learn more about the project, visit answer.apache.org.
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:2.0.3
For more information, see Installation.
Answer provides a plugin system for developers to create custom plugins and expand Answer’s features. You can find the plugin documentation here.
We value your feedback and suggestions to improve our documentation. If you have any comments or questions, please feel free to contact us. We’re excited to see what you can create using our plugin system!
You can also check out the plugins here.
# Install wire and mockgen for building. You can run `make check` to check if they are installed. $ make generate # Install frontend dependencies and build $ make ui # Install backend dependencies and build $ make build
Contributions are always welcome!
See CONTRIBUTING for ways to get started.