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 <RadioButtonGroup
value={editMode} value={editMode}
options={[ options={[
{ label: 'Time Zone', value: 'tz' }, { label: 'Time zone', value: 'tz' },
{ label: 'Fiscal year', value: 'fy' }, { label: 'Fiscal year', value: 'fy' },
]} ]}
onChange={setEditMode} onChange={setEditMode}

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

@ -67,7 +67,7 @@ export class TimePickerSettings extends PureComponent<Props, State> {
render() { render() {
return ( return (
<CollapsableSection label="Time options" isOpen={true}> <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 <TimeZonePicker
inputId="time-options-input" inputId="time-options-input"
includeInternal={true} includeInternal={true}

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

Loading…
Cancel
Save