ActionScript and Daylight Savings Time

October 27, 2008 15:10 by docbliny 

Since the U.S. DST change is coming up this weekend, I thought it would be a good time to remind people about date math in ActionScript.

When working with dates, make sure you don't use milliseconds (UNIX timestamps) to increment/decrement times and dates. Instead, always increment the hours, date and similar properties on Date object.

However, there is a bug in the player currently causing increments to myDate.hours to not do the correct thing. To avoid this problem, use the myDate.hoursUTC property instead.

You can safely add/subtract hours and the Date class will automatically increment the actual underlying date. For example, if the date is 10/27/2008 23:00 and you add an hour, the date will rollover to 10/28/2008 00:00 as expected. The same goes for adding days, months and years.


Installing Flash on WHS

October 22, 2008 20:18 by docbliny 

While I don't recommend it, you can do the following to install Flash Player on Windows Home Server:

  1. Open Internet Explorer.
  2. Click Tools, and then click Internet Options.
  3. Select the Security page.
  4. Click on Trusted sites.
  5. Click Sites.
  6. Add http://*.adobe.com and http://*.macromedia.com as trusted sites, and then click Close.
  7. Click OK to close the Internet Options window .
  8. Open http://www.adobe.com/flashplayer and let it install.