[WEB-2884] chore: Update timezone list, add new endpoint, and update timezone dropdowns (#6231)

* dev: updated timezones list

* chore: added rate limiting
This commit is contained in:
guru_sainath 2024-12-19 20:15:55 +05:30 committed by GitHub
parent 0a320a8540
commit 9b71a702c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 444 additions and 59 deletions

View file

@ -0,0 +1,23 @@
import { TTimezones } from "@plane/types";
// helpers
import { API_BASE_URL } from "@/helpers/common.helper";
// api services
import { APIService } from "@/services/api.service";
export class TimezoneService extends APIService {
constructor() {
super(API_BASE_URL);
}
async fetch(): Promise<TTimezones> {
return this.get(`/api/timezones/`)
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
}
const timezoneService = new TimezoneService();
export default timezoneService;