diff -uN gnome-shell/fix-calendar-week.patch gnome-shell-fix/fix-calendar-week.patch --- gnome-shell/fix-calendar-week.patch 1970-01-01 01:00:00.000000000 +0100 +++ gnome-shell-fix/fix-calendar-week.patch 2015-01-16 16:37:34.705320325 +0000 @@ -0,0 +1,39 @@ +diff --git a/js/ui/calendar.js b/js/ui/calendar.js +index bc51d20..6edf69f 100644 +--- a/js/ui/calendar.js ++++ b/js/ui/calendar.js +@@ -88,23 +88,6 @@ function _formatEventTime(event, clockFormat, periodBegin, periodEnd) { + return ret; + } + +-function _getCalendarWeekForDate(date) { +- // Based on the algorithms found here: +- // http://en.wikipedia.org/wiki/Talk:ISO_week_date +- let midnightDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); +- // Need to get Monday to be 1 ... Sunday to be 7 +- let dayOfWeek = 1 + ((midnightDate.getDay() + 6) % 7); +- let nearestThursday = new Date(midnightDate.getFullYear(), midnightDate.getMonth(), +- midnightDate.getDate() + (4 - dayOfWeek)); +- +- let jan1st = new Date(nearestThursday.getFullYear(), 0, 1); +- let diffDate = nearestThursday - jan1st; +- let dayNumber = Math.floor(Math.abs(diffDate) / MSECS_IN_DAY); +- let weekNumber = Math.floor(dayNumber / 7) + 1; +- +- return weekNumber; +-} +- + function _getCalendarDayAbbreviation(dayNumber) { + let abbreviations = [ + /* Translators: Calendar grid abbreviation for Sunday. +@@ -672,7 +655,7 @@ const Calendar = new Lang.Class({ + this._buttons.push(button); + + if (this._useWeekdate && iter.getDay() == 4) { +- let label = new St.Label({ text: _getCalendarWeekForDate(iter).toString(), ++ let label = new St.Label({ text: iter.toLocaleFormat('%V'), + style_class: 'calendar-day-base calendar-week-number'}); + layout.attach(label, rtl ? 7 : 0, row, 1, 1); + } +-- +2.1.0 diff -uN gnome-shell/PKGBUILD gnome-shell-fix/PKGBUILD --- gnome-shell/PKGBUILD 2015-01-15 23:05:45.168201719 +0000 +++ gnome-shell-fix/PKGBUILD 2015-01-16 16:46:01.721463453 +0000 @@ -4,7 +4,7 @@ pkgname=gnome-shell pkgver=3.14.3 -pkgrel=2 +pkgrel=3 pkgdesc="The next generation GNOME Shell" arch=(i686 x86_64) url="http://live.gnome.org/GnomeShell" @@ -19,15 +19,18 @@ install=gnome-shell.install groups=(gnome) source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz - nm-libexecdir.patch) + nm-libexecdir.patch + fix-calendar-week.patch) sha256sums=('fb44484efb94af4d90189127136a82b2cc1afed93e24834165ae550b58b539d6' - 'e5bb10ad2e5c3e0fde3d05babd1bfdda701e553e02d493f7e54cb7832ce7e607') + 'e5bb10ad2e5c3e0fde3d05babd1bfdda701e553e02d493f7e54cb7832ce7e607' + '4f5db961be71c2d2e5ec6dab9b0223ae23476697d0c4f1edc8a180bfd0767853') prepare() { cd $pkgname-$pkgver # FS#30747 FS#32730 Problems due to libexecdir different from NM patch -Np1 -i ../nm-libexecdir.patch + patch -Np1 -i ../fix-calendar-week.patch } build() {