How to print "Time" field in twig template I have a time field in my content type. But when I entered time in the format 05:00 AM, I get a five digit timestamp eg. 18000 (for 05:00 AM).
When I print this using node.field_time.value|date('h:i A') it prints

10:30 AM

which is 05:30 Hrs extra than the entered one.
How do I'll get the correct time?
The default timezone is set to Kolkata which is +05:30 UTC. Is this something causing the problem?
By default, it considers the entered time as UTC. So when we render the value of the time field, it prints the value according to the user's timezone.

I used below code to print the same value as entered in the backend

node.field_time.value|date('h:i A', 'UTC')

or we can also use false instead of UTC to get the same output without setting any time zone.