You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
376 B
11 lines
376 B
import { eventHandler } from 'h3';
|
|
import { TIME_ZONE_OPTIONS } from '~/utils/mock-data';
|
|
import { useResponseSuccess } from '~/utils/response';
|
|
|
|
export default eventHandler(() => {
|
|
const data = TIME_ZONE_OPTIONS.map((o) => ({
|
|
label: `${o.timezone} (GMT${o.offset >= 0 ? `+${o.offset}` : o.offset})`,
|
|
value: o.timezone,
|
|
}));
|
|
return useResponseSuccess(data);
|
|
});
|
|
|