Files
olons_server/internal/store/portal_notice_test.go
T
richjohnrambo 8ce67648b1
Deploy olons-server production / deploy (push) Successful in 3m12s
feat: add global system notices and Beijing order time display
2026-10-22 21:56:07 +08:00

14 lines
333 B
Go

package store
import (
"testing"
"time"
)
func TestFormatNoticeBusinessTimeUsesShanghaiWallClock(t *testing.T) {
value := time.Date(2026, 10, 22, 6, 12, 38, 0, time.UTC)
if got, want := formatNoticeBusinessTime(value), "2026-10-22 14:12:38"; got != want {
t.Fatalf("formatNoticeBusinessTime() = %q, want %q", got, want)
}
}