Changeset 886 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
- Timestamp:
- Jul 18, 2010, 9:42:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r868 r886 655 655 /// Calculates StartDay and End Day and returns them in output params. 656 656 /// nWeeks == number of Weeks to display 657 /// nColumnCount is number of days displayed per week. If 5 columns, begin on 658 /// Monday, if 7 Columns, begin on Sunday 657 /// nColumnCount is number of days displayed per week. 658 /// If 5 columns, begin on Second Day of Week 659 /// If 7 Columns, begin on First Day of Week 660 /// (this is a change from the hardcoded behavior for US-based calendars) 659 661 /// 660 662 /// Returns TRUE if the document's data needs refreshing based on … … 666 668 DateTime OldStartDay = m_dStartDate; 667 669 DateTime OldEndDay = m_dEndDate; 670 // Week start based on machine locale 668 671 int nStartWeekDay = (int)System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek; 669 672 int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday 670 673 671 int nOff = (nStartWeekDay + 1) % 7; 674 // this offset gets approrpriate day based on locale. 675 int nOff = (nStartWeekDay + 1) % 7; 672 676 TimeSpan ts = new TimeSpan(nWeekDay - nOff,0,0,0); //d,h,m,s 673 677
Note:
See TracChangeset
for help on using the changeset viewer.