Timezone: Consistency in how we write time zone (#52679)

* Timezone: Consistency in how we write time zone

* Updated
pull/52689/head
Torkel Ödegaard 3 years ago committed by GitHub
parent b782d9aa12
commit be5e96f628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/grafana-ui/src/components/DateTimePickers/TimeRangePicker/TimePickerFooter.tsx
  2. 2
      public/app/core/components/OptionsUI/registry.tsx
  3. 2
      public/app/features/dashboard/components/DashboardSettings/TimePickerSettings.tsx
  4. 2
      public/app/plugins/panel/timeseries/module.tsx

@ -78,7 +78,7 @@ export const TimePickerFooter: FC<Props> = (props) => {
<RadioButtonGroup
value={editMode}
options={[
{ label: 'Time Zone', value: 'tz' },
{ label: 'Time zone', value: 'tz' },
{ label: 'Fiscal year', value: 'fy' },
]}
onChange={setEditMode}

@ -147,7 +147,7 @@ export const getAllOptionEditors = () => {
const timeZone: StandardEditorsRegistryItem<TimeZone> = {
id: 'timezone',
name: 'Time Zone',
name: 'Time zone',
description: 'Time zone selection',
editor: TimeZonePicker as any,
};

@ -67,7 +67,7 @@ export class TimePickerSettings extends PureComponent<Props, State> {
render() {
return (
<CollapsableSection label="Time options" isOpen={true}>
<Field label="Timezone" data-testid={selectors.components.TimeZonePicker.containerV2}>
<Field label="Time zone" data-testid={selectors.components.TimeZonePicker.containerV2}>
<TimeZonePicker
inputId="time-options-input"
includeInternal={true}

@ -18,7 +18,7 @@ export const plugin = new PanelPlugin<TimeSeriesOptions, GraphFieldConfig>(TimeS
builder.addCustomEditor({
id: 'timezones',
name: 'Timezone',
name: 'Time zone',
path: 'timezones',
category: ['Axis'],
editor: TimezonesEditor,

Loading…
Cancel
Save