2023-04-25 15:49:47 +00:00
|
|
|
import { Injectable } from '@nestjs/common';
|
|
|
|
import { IFindTimezone } from '../../domain/interfaces/timezone-finder.interface';
|
|
|
|
import { find } from 'geo-tz';
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
export class GeoTimezoneFinder implements IFindTimezone {
|
2023-04-26 12:14:46 +00:00
|
|
|
timezones = (lon: number, lat: number): string[] => find(lat, lon);
|
2023-04-25 15:49:47 +00:00
|
|
|
}
|