100 Days of Code Day 22
All I got done was the exercise Beauty Salon Goes Global. This took the entire time. I am very annoyed about that.
If you saw the text below in the problem description, wouldn’t you think that on Linux that the Paris time zone was “Paris – Europe/Paris”. That is how it reads to me. It is actually just “Europe/Paris”. Couldn’t they have put it in quotes or used an equal sign instead of a dash. I spent too much time debugging that.
On Mac (OSX) and Linux these are:
- New York – America/New_York
- London – Europe/London
- Paris – Europe/Paris
On Windows, they are:
- New York – Eastern Standard Time
- London – GMT Standard Time
- Paris – W. Europe Standard Time
I also went the way wrong direction in the has daylight savings time started function. I was trying to turn a rule TransitionTime struct into an actual date where it had complicated fixed/floating times with date ranges based on week of the month, etc. I finally got it working on my machine but it failed on theirs. That took a long long time. Then I looked at a community solution and it was just (date – 7days).isDaylightSavings != date.isDaylightSavings. I super over complicated that. I think I am angry at .net for not having a function in that TransitionTime struct to print out a date for a given year. Why isn’t that in there?
Anyway no tic-tac-toe GUI work today since that took so long. Picture is the calendar gremlin that ate all of today’s time.
