Fjalapeno has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/216992

Change subject: Remove week warnings
......................................................................

Remove week warnings

Change-Id: Id714ad9ff4b535592440a3850827533b4a6b3cdd
---
M Wikipedia/Categories/NSDate-Utilities.m
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia 
refs/changes/92/216992/1

diff --git a/Wikipedia/Categories/NSDate-Utilities.m 
b/Wikipedia/Categories/NSDate-Utilities.m
index ac8168a..693447f 100644
--- a/Wikipedia/Categories/NSDate-Utilities.m
+++ b/Wikipedia/Categories/NSDate-Utilities.m
@@ -89,7 +89,7 @@
     NSDateComponents* components2 = [CURRENT_CALENDAR 
components:DATE_COMPONENTS fromDate:aDate];
 
     // Must be same week. 12/31 and 1/1 will both be week "1" if they are in 
the same week
-    if (components1.week != components2.week) {
+    if (components1.weekOfYear != components2.weekOfYear) {
         return NO;
     }
 
@@ -303,7 +303,7 @@
 
 - (NSInteger)week {
     NSDateComponents* components = [CURRENT_CALENDAR 
components:DATE_COMPONENTS fromDate:self];
-    return components.week;
+    return components.weekOfYear;
 }
 
 - (NSInteger)weekday {

-- 
To view, visit https://gerrit.wikimedia.org/r/216992
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id714ad9ff4b535592440a3850827533b4a6b3cdd
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Fjalapeno <cfl...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to