diff --git a/CHANGELOG.md b/CHANGELOG.md index eb7d1c6e..fed00d1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## v0.12.3 + +- Fixed "Toggle column" reactivity when navigating between collections ([#1836](https://github.com/pocketbase/pocketbase/pull/1836)). + +- Logged the current datetime on server start ([#1822](https://github.com/pocketbase/pocketbase/issues/1822)). + + ## v0.12.2 - Fixed the "Clear" button of the datepicker component not clearing the value ([#1730](https://github.com/pocketbase/pocketbase/discussions/1730)). diff --git a/cmd/serve.go b/cmd/serve.go index bdc391c5..6f7267a8 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -6,6 +6,7 @@ import ( "net" "net/http" "path/filepath" + "strings" "time" "github.com/fatih/color" @@ -90,11 +91,20 @@ func NewServeCommand(app core.App, showStartBanner bool) *cobra.Command { if httpsAddr != "" { schema = "https" } - regular := color.New() + + date := new(strings.Builder) + log.New(date, "", log.LstdFlags).Print() + bold := color.New(color.Bold).Add(color.FgGreen) - bold.Printf("> Server started at: %s\n", color.CyanString("%s://%s", schema, serverConfig.Addr)) - regular.Printf(" - REST API: %s\n", color.CyanString("%s://%s/api/", schema, serverConfig.Addr)) - regular.Printf(" - Admin UI: %s\n", color.CyanString("%s://%s/_/", schema, serverConfig.Addr)) + bold.Printf( + "%s Server started at %s\n", + strings.TrimSpace(date.String()), + color.CyanString("%s://%s", schema, serverConfig.Addr), + ) + + regular := color.New() + regular.Printf(" ➜ REST API: %s\n", color.CyanString("%s://%s/api/", schema, serverConfig.Addr)) + regular.Printf(" ➜ Admin UI: %s\n", color.CyanString("%s://%s/_/", schema, serverConfig.Addr)) } var serveErr error