Skip to main content

Daylight Savings Mayhem - Automating a Check of Notes INI

Yesterday we discovered that there are changes to the Australian Daylight Savings dates coming into effect this weekend (it will continue when it would normally have ended).

There are lots of repercussions, but the worst (ones that could affect the business) relate to the Lotus Notes Calendar.

There are two things to do to prepare ourselves;
  • Windows Updates on our clients (WinXP)
  • Windows Updates on our servers (Win2003)

We can handle the servers ourselves but how do we know if the clients have done their updates? Simple, we ask them by sending a button around so they can determine the answers for themselves.

Creating a Button that can be mailed to Notes Users
Here's the LotusScript code on my button;

Sub Click(Source As Button)
  Dim vDSTText As Variant
  Dim Session As New NotesSession

  Const CorrectDST = "10,1,1,4,1,1"
  vDSTText = Session.GetEnvironmentString("DSTLAW",1)
  If vDSTText = CorrectDST Then
     Msgbox "Your Time Settings are Correct!", 64, "Checking Time Settings"
  Else
     Msgbox "Your Time Settings are NOT Correct! - You need to do a Windows Update", 48, "Checking Time Settings"
  End If
End Sub

Basically, all we're doing is having a look at the value next to DSTLAW in the Notes.ini file.
In our case, it says... 10,1,1,4,1,1

Syntax: DSTlaw=begin_month, begin_week, begin_day, end_month, end_week, end_day

Which means Daylight Savings - BEGIN October, Week 1, Day 1 and END April, Week 1, Day 1

You could easily change the Const CorrectDST = "10,1,1,4,1,1" value to cater for different locations.

Note: Although you can write back to the Notes.INI file, don't be tempted to do this. The value is set when Notes starts from the Operating System, so making changes at this level won't fix anything.

Comments

Hi Gavin,
is it "END March, Week 1, Day 1" or "END April, Week 1, Day 1"

Also the 3rd and 6th parameters I think refer to the 1st Sunday rather than the 1st of the month. This site explains it well: http://www.pixelitt.com.au/info/daylight-savings-time.htm

Carlos
Gavin Bollard said…
Thanks crodrig5, Well spotted. I wrote the explanations off the cuff and obviously wasn't concentrating. It's end April.
Michelle said…
Gavin - are you aware that NSW, VIC and I think TAS have also changed the start date for DST from the last Sunday in October to the first?

Anyone in these Australian states who has to make changes for this weekend should pro-actively check for the next change as well.

The earlier you make the changes, the fewer problems you will experience
Michelle said…
Gavin - you should be aware that the start of DST for 2008 has also moved - from the last weekend in October to the first weekend.

Now is a good time for all Domino Admins in NSW and VIC to check that this boundary is also correct.

Popular posts from this blog

How to Change Your Notification Options for New Lotus Notes Mail in version 8.x

Don't worry, I'm not patronizing you (my readers), I just decided to re-document this for one of our internal users and thought you might want to be able to use it in your own user documentation. WHAT IS THIS DOCUMENT ABOUT? Some people who don't get a lot of mail, like to be notified when such an event occurs. Notification can be; via a sound via a pop-up box via the system tray (where the computer clock is) The pop up box looks like this; Other people, who like myself, get too much mail would rather not be notified. The aim of this document is to tell you how (and where) to turn these options on and off. CHANGING YOUR SETTINGS To change your settings from the Notes 8.x client; On the Menu, click File , then Preferences... On the left hand side , click on the little plus sign to the left of Mail to expand the options. Click on the option marked Sending and Receiving . In the middle section, under receiving, you can control your notifications. If you untick the box mark...

How to Create a Bootable DVD Using Nero Burning ROM 9

I often need to create bootable CDs and DVDs but it's weird because I frequently end up buring myself a new coaster instead. It's not that the process is difficult, just that nero has a few too many options and I forget which ones to choose and end up picking the wrong one. I figured that the best way to avoid this mistake in future would be to write the steps down. Procedure Insert CD or DVD into your DVD Burner. Start Nero Burning ROM 9 Choose DVD-ROM (Boot) or CD-ROM (Boot) depending on what you're creating You'll be prompted for a disk image source. Choose a Nero Source - you'll usually find them somewhere like this... C:\Program Files\Nero\Nero9\Nero Burning Rom\DOSBootImage.ima Leave the Boot Locale as English - unless you really need a different keyboard layout Tick the box marked [X] Enable Expert Settings Choose Hard Drive Emulation and leave any other settings as they are. Click the button marked New Add any files you want but don't try to add operati...

How to Create an Auto-Response Mail Message in Lotus Notes 8.5.3+

Why would you do this? Suppose that you have an externally accessible generic email address for your company; support@mycompany.com or info@mycompany.com. You might expose this to the web and allow people to send messages to you. Setting up an auto-response email will tell the senders that their message reached its destination and that it will be dealt with accordingly.  It's also good practice to include links to FAQs or other useful information. Why 8.5.3 The techniques we'll be using here work in older versions of Notes but some of the options seem to have moved around in 8.5.3.  I figured it was a good time to show you where they've moved to. The Procedure Start Domino Designer and open the Mail file to be modified.  A really quick way to do this is to right-click on the application tab and choose "Open in Designer". In the Left hand panel of designer, expand Code and then double-click Agents.  A new window should appear. Click the action ...