diff --git a/admin/tall-tests.php b/admin/tall-tests.php
index cec8652..8e08610 100644
--- a/admin/tall-tests.php
+++ b/admin/tall-tests.php
@@ -11,5 +11,7 @@ echo $OUTPUT->header();
 
 echo '<h1>TALL tests</h1>';
 
+//print_object(usergetdate(time()));
+echo date('Y', make_timestamp(2012));
 
 echo $OUTPUT->footer();
diff --git a/calendar/event.php b/calendar/event.php
index dd98be3..8aaa524 100644
--- a/calendar/event.php
+++ b/calendar/event.php
@@ -170,7 +170,7 @@ if ($data) {
         'view' => 'day',
         'cal_d' => date('j', $event->timestart),
         'cal_m' => date('n', $event->timestart),
-        'cal_y' => date('y', $event->timestart),
+        'cal_y' => date('Y', $event->timestart),
     );
     $eventurl = new moodle_url('/calendar/view.php', $params);
     if (!empty($event->courseid) && $event->courseid != SITEID) {
