Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultTimezone is the default timezone string // This is what is set in os-core DefaultTimezone = "UTC" // RequiredBundle the bundle needed to set timezone other than the default RequiredBundle = "tzdata" )
Variables ¶
This section is empty.
Functions ¶
func IsValidTimezone ¶
IsValidTimezone verifies if the given keyboard is valid
func SetTargetTimezone ¶
SetTargetTimezone uses creates a symlink to set the timezone on the target
Types ¶
type TimeZone ¶
type TimeZone struct { Code string // contains filtered or unexported fields }
TimeZone represents the system time zone
func (*TimeZone) IsUserDefined ¶
IsUserDefined returns true if the configuration was interactively defined by the user
func (*TimeZone) MarshalYAML ¶
MarshalYAML marshals TimeZone into YAML format
func (*TimeZone) UnmarshalYAML ¶
UnmarshalYAML unmarshals TimeZone from YAML format
Click to show internal directories.
Click to hide internal directories.