About

I am an Application Developer and sometimes pose as a Systems Administrator at the University of California, Davis.  I Spend most of my time writing business applications and occasionally have to fix a server I run here and there.

Advertisements

3 thoughts on “About

  1. Hi Alan,
    my name is Simone Greci, i’m Italian. I want to thank you for your nice class PermittedLogonTime because it’s giving me a good help.

    I want to report you a strange behavior: logon hours seems to be shifted. I try to explain better. This piece of code:

    List list = new List();
    list.Add(new LogonTime(DayOfWeek., new TimeSpan(9, 0, 0), new TimeSpan(10, 0, 0)));

    user.PermittedLogonTimes = PermittedLogonTime.Calculate(list);
    user.Save(ctx);

    return this logon hour:

    http://img191.imageshack.us/i/logonhours.png/

    Have you any idea?

    Thanks 🙂

    Simon

    1. Simone,

      What time zone are you working in? My guess would be that the mask that my class provides might be specific for my time zone (Pacific -8). If this is the case I might be able to modify the class to deal with timezones. The first thing to test is if the shift you are experiencing corresponds to the difference in between our time zones. If so, then the masks my class generates accounts for my time zone.

      Hope that helps. Please let me know what you find so I can update the class accordingly.

      -Alan

      1. Alan,
        after some checks i confirm that hours are exactly shifted by 9 hours: -8 Pacif and +1 Rome 🙂

        Thanks for you help! Great work!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s