debian-mirror-gitlab/spec/frontend/vue_shared/components/timezone_dropdown/helpers.js
2022-11-25 23:54:43 +05:30

6 lines
244 B
JavaScript

import timezoneDataFixture from 'test_fixtures/timezones/short.json';
export { timezoneDataFixture };
export const findTzByName = (identifier = '') =>
timezoneDataFixture.find(({ name }) => name.toLowerCase() === identifier.toLowerCase());