Mailtrain-org / mailtrain

Self hosted newsletter app
GNU General Public License v3.0
5.51k stars 692 forks source link

Timezone not working via the subscribe API #1354

Closed doino-gretchenliev closed 6 months ago

doino-gretchenliev commented 1 year ago

Timezone is not set on the user when the user is created via the API:

curl -XPOST \
-H "Content-Type: application/json" \
--data '{"EMAIL":"fake@gmail.com", "TIMEZONE": "EST"}' \
'https://mailtrain.example.com/api/subscribe/QwRkgatmts?access_token=secret' 

It's also not working with POST parameters.

doino-gretchenliev commented 1 year ago

It works if the timezone is in lowercase, so it might be worth it to add toLowerCase here.

talheim-it commented 6 months ago

We are going to start with the development and testing of mailtrain v3 in the next weeks.

You are welcome to help us with the testing as soon as the first release candidate is available.