golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.12k stars 17.68k forks source link

x/website: #54391

Closed sorenmogensen closed 2 years ago

sorenmogensen commented 2 years ago

What is the URL of the page with the issue?

https://go.dev/tour/flowcontrol/10

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

Screenshot

wrong_day

What did you do?

Ran the example - with added print statements to view the "today" variable

What did you expect to see?

As today is Thursday, I expected the script to say that Saturday is two days away. It didn't.

What did you see instead?

The go.dev server seems to think today is Tuesday. That's going to be confusing to people trying to understand the script.

seankhliao commented 2 years ago

time on the playground is fixed, it's described below in the limitations section

Closing as working as intended