Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49188

Timezone problems with input[time]

$
0
0

@italo-nascimento wrote:

Hi everyone.

I'm getting an inconsistent behavior when trying to correct timezone of an input with type="time". Maybe someone here could help me understand what's going on.

I have this field:

<input type="time" ng-model="selectedEvent.startTime">

It prompts android's native time picker.

Then, I print the time in my template using date filter and specifying the timezone:

{{selectedEvent.closingTime | date : 'H:mm' : '-0300'}}

As a result, I get the correct time printed if it's above 20h (8pm). However if it's below 20h, it's printed 1h less.

Thoughts?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>