TIMAI2
1
When checking the values in a clock instant (now) I see that the hour reported is 5 hours behind my current time

running:
<!DOCTYPE html>
<html>
<meta name=“viewport” content=“width=device-width, initial-scale=1.0”>
<head>
<title>Time</title>
</head>
<body>
<script>
alert( new Date());
</script>
</body>
</html>
in my browser is returning:

This is in Chromium, but I get the same results if I test in Firefox on the same machine
TIMAI2
3
Looks like yours is OK Anke, so it could well be a local issue on my machine - will test another
When I run similar code to posted by Anke on my device; it reports the correct local time. When I use an emulator, it provides UTC.
TIMAI2
5
OK, figured it out, my emulator was set to US eastern time, changed to UK time and all is well.
TIMAI2
Closed
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.