aboutsummaryrefslogtreecommitdiffhomepage
path: root/storage/timezone.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/timezone.go')
-rw-r--r--storage/timezone.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/storage/timezone.go b/storage/timezone.go
index 8edfc1c..257f44f 100644
--- a/storage/timezone.go
+++ b/storage/timezone.go
@@ -6,12 +6,14 @@ package storage
import (
"fmt"
- "github.com/miniflux/miniflux2/helper"
"time"
+
+ "github.com/miniflux/miniflux2/helper"
)
-func (s *Storage) GetTimezones() (map[string]string, error) {
- defer helper.ExecutionTime(time.Now(), "[Storage:GetTimezones]")
+// Timezones returns all timezones supported by the database.
+func (s *Storage) Timezones() (map[string]string, error) {
+ defer helper.ExecutionTime(time.Now(), "[Storage:Timezones]")
timezones := make(map[string]string)
query := `select name from pg_timezone_names() order by name asc`