mde / timezone-js

DEPRECATED: Timezone-enabled JavaScript Date object. Uses Olson zoneinfo files for timezone data.
824 stars 183 forks source link

Added 12 hour string formater #73

Closed prozacgod closed 11 years ago

prozacgod commented 11 years ago

I did noticed the k modifier has a side effect of adjusting the hour, but this behavior is odd - and doesn't allow for just getting a 12 hour string back, you could only get a 24 hour string or a 12 hour string with AM/PM.

Also, the logic there leads to a 0 AM/00 AM and not a 12 AM time 12 PM is accounted for fine.

longlho commented 11 years ago

Thanks :) good job

mde commented 11 years ago

Nice!