This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
|
package utils
|
|
|
|
import "time"
|
|
|
|
func GetLocation(lang string) *time.Location {
|
|
switch lang {
|
|
case "pl":
|
|
loc, _ := time.LoadLocation("Europe/Warsaw")
|
|
return loc
|
|
default:
|
|
return time.UTC
|
|
}
|
|
}
|