Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $response = $this->client->get('timezone/json?location=' . $lat . ',' . $lng . '×tamp=' . time() . '&key=' . config('integration-gmaps.api-key'));
- $result = (object)json_decode($response->getBody()->getContents());
- if(isset($result,$result->timeZoneId)){
- ///example hardcoded
- Carbon::parse('11/12/2019 10:01',$result->timeZoneId);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement