Move /e2e -> /e2e-tests
Этот коммит содержится в:
15
e2e-tests/cypress/tests/utils/timezone.js
Обычный файл
15
e2e-tests/cypress/tests/utils/timezone.js
Обычный файл
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import timezones from 'timezones.json';
|
||||
|
||||
export function getTimezoneLabel(timezone = '') {
|
||||
for (let i = 0; i < timezones.length; i++) {
|
||||
const zone = timezones[i];
|
||||
if (zone.utc.includes(timezone)) {
|
||||
return zone.text;
|
||||
}
|
||||
}
|
||||
|
||||
return timezone;
|
||||
}
|
||||
Ссылка в новой задаче
Block a user