Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 03:22 am EST

Geeklog Forums

ISO 8602 calendar


Status: offline

cmkl

Forum User
Newbie
Registered: 04/14/03
Posts: 1

I am trying to modify the GL 1.37 calendar to display an ISO 8602 calendar. That's one where saturday and sunday are sitting next to each other at the right side of a week.

I thought I had done it by changing line 453 of calendar.class.php (in function setCalendarMatrix) to read:

$firstday = 0 + $this->getDayOfWeek(1,$month,$year);

...and then rearranging the order of the days that get passed to the calendar templates. And that worked for some months, but not others, namely June, where the month starts in the first cell of the row, at 1, even though it should be in the second.

Any help/suggestions, derisive laughter would be welcomed.

 Quote

All times are EST. The time is now 03:22 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content