Skip to content

Commit

Permalink
Merge pull request #4989 from wikimedia/T375452-alt-text-date
Browse files Browse the repository at this point in the history
Update dates for alt text experiment
  • Loading branch information
tonisevener authored Sep 25, 2024
2 parents f196e60 + 817f513 commit 243f935
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public final class WMFAltTextDataController {
public lazy var experimentStopDate: Date? = {
var dateComponents = DateComponents()
dateComponents.year = 2024
dateComponents.month = 10
dateComponents.day = 21
dateComponents.month = 11
dateComponents.day = 5
return Calendar.current.date(from: dateComponents)
}()

Expand Down
4 changes: 2 additions & 2 deletions Wikipedia/Code/ExploreFeedSettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ class ExploreFeedSettingsViewController: BaseExploreFeedSettingsViewController {
func shouldAltTextExperimentBeActive() -> Bool {
var dateComponents = DateComponents()
dateComponents.year = 2024
dateComponents.month = 10
dateComponents.day = 21
dateComponents.month = 11
dateComponents.day = 5

let calendar = Calendar(identifier: .gregorian)
guard let experimentDate = calendar.date(from: dateComponents) else {
Expand Down
4 changes: 2 additions & 2 deletions Wikipedia/Code/WMFSuggestedEditsContentSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ - (BOOL)isDeviceIPhone {
- (BOOL)shouldAltTextExperimentBeActive {
NSDateComponents *dateComponents = [[NSDateComponents alloc] init];
[dateComponents setYear:2024];
[dateComponents setMonth:10];
[dateComponents setDay:21];
[dateComponents setMonth:11];
[dateComponents setDay:5];

NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
NSDate *experimentDate = [calendar dateFromComponents:dateComponents];
Expand Down

0 comments on commit 243f935

Please sign in to comment.