[SOLVED] Clock1.Now returning US Eastern Time not UK Time?

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

image

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:

image

This is in Chromium, but I get the same results if I test in Firefox on the same machine

or what do you mean?

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.

OK, figured it out, my emulator was set to US eastern time, changed to UK time and all is well.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.