debian-mirror-gitlab/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
244 B
JavaScript
Raw Normal View History

2022-11-25 23:54:43 +05:30
import timezoneDataFixture from 'test_fixtures/timezones/short.json';
export { timezoneDataFixture };
export const findTzByName = (identifier = '') =>
timezoneDataFixture.find(({ name }) => name.toLowerCase() === identifier.toLowerCase());