@zodic/shared 0.0.66 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/api/index.ts +2 -1
- package/package.json +1 -1
package/app/api/index.ts
CHANGED
|
@@ -539,11 +539,12 @@ export const Api = (env: BackendBindings) => ({
|
|
|
539
539
|
callTimezone: async ({
|
|
540
540
|
lat,
|
|
541
541
|
lon,
|
|
542
|
+
timestamp,
|
|
542
543
|
}: {
|
|
543
544
|
lat: number;
|
|
544
545
|
lon: number;
|
|
546
|
+
timestamp: number;
|
|
545
547
|
}): Promise<number> => {
|
|
546
|
-
const timestamp = Math.floor(Date.now() / 1000);
|
|
547
548
|
const url = `https://maps.googleapis.com/maps/api/timezone/json?location=${lat},${lon}×tamp=${timestamp}&key=${env.GOOGLE_TIMEZONE_API_KEY}`;
|
|
548
549
|
|
|
549
550
|
try {
|