Hacker News new | ask | show | jobs
by calbear81 4707 days ago
You would handle that by looking at looking at a user's location settings and choosing the appropriate one. For example, if we detect your IP is in Germany, we would prompt "Would you like to see this site in German and change the currency to Euros?" If you say yes, then we would also localize the date formats.
2 comments

> You would handle that by looking at looking at a user's location settings and choosing the appropriate one.

Great, now if I try to book a flight from Spain to Hungary while being in the US for some reason, I'm pretty much guaranteed to get the one date format which makes no sense whatsoever.

If you were in the US, we would use US conventions unless you had specified that you picked a different localized site (let's say the .es site) in which case we would switch to the conventions based on localization settings.
> If you were in the US, we would use US conventions

Which is precisely the problem I'm pointing out.

I'm from the UK, so if I'm in the US looking to get home, I see the dates the opposite way around? A better way would be to look at the user's locale.