eight04 / angular-datetime

A directive to add the behavior of datetime input on unsupported browsers.
MIT License
93 stars 28 forks source link

Ability to specify custom timezone in datetime-timezone attribute #60

Closed andreyjkee closed 6 years ago

andreyjkee commented 6 years ago

Added ability to specify the custom timezone string in directive datetime-timezone="+0300" for example If you need to set time in UTC timezone, simply pass "UTC" as param. datetime-timezone="+0000"

eight04 commented 6 years ago

Instead of extending datetime-utc attribute, it might be better to add a new attribute e.g. datetime-timezone. After that, datetime-utc probably should be deprecated.

andreyjkee commented 6 years ago

@eight04 agree, can you update the samples files?

eight04 commented 6 years ago

I think there is no need to use a UTC keyword, users can simply set datetime-timezone="'+0000'". I'll review this PR when I have time.

eight04 commented 6 years ago

You don't have to invite me to your repo. Just simply check this option: image

eight04 commented 6 years ago

:tada: