Ignore:
Timestamp:
Aug 11, 2010, 8:42:23 AM (14 years ago)
Author:
Sam Habiel
Message:

StartDate for CGAVView, 1st try.
CGDocument uses StartDate from Current thread locale rather than current culture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs

    r886 r908  
    668668                        DateTime OldStartDay = m_dStartDate;
    669669                        DateTime OldEndDay = m_dEndDate;
    670             // Week start based on machine locale
    671             int nStartWeekDay = (int)System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
     670            // Week start based on thread locale
     671            int nStartWeekDay = (int)System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
    672672            int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday
    673673
Note: See TracChangeset for help on using the changeset viewer.