Skip to content

Locale does not work #11

Description

@apuestaya

I printed events result like this but time zone is for Europe/London.

[0] => Array
(
[event] => Array
(
[id] => 27417270
[name] => Carpi v Brescia
[countryCode] => IT
[timezone] => Europe/London
[openDate] => 2015-04-18T13:00:00.000Z
)

        [marketCount] => 8
    )

I checked API docummentation in Betfair website and i found i can change with LOCALE param.
In your function getAllEventFilteredByEventTypeIds i added ->setLocale("ES"); for a spanish timezone but it still shows same result Europe/London.

public function getAllEventFilteredByEventTypeIds(array $eventTypeIds)
{
$marketFilter = $this->createMarketFilter();
$marketFilter->setEventTypeIds($eventTypeIds);
$param = $this->createParam($marketFilter)
->setLocale("ES");

    return $this->adapter->adaptResponse(
        $this->apiNgRequest(self::API_METHOD_NAME, $param)
    );
}

Do you know how can i change language, timezone and country?
I want deploy it in Colombia.
Thank you for your help, API and you time.
I hope contribute soon as possible when i get ideas after play with it.
Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions