Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion WordPressKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Pod::Spec.new do |s|
s.name = 'WordPressKit'
s.version = '4.52.0-beta.4'
s.version = '4.52.0-beta.5'

s.summary = 'WordPressKit offers a clean and simple WordPress.com and WordPress.org API.'
s.description = <<-DESC
Expand Down
5 changes: 3 additions & 2 deletions WordPressKitTests/BloggingPromptsServiceRemoteTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import XCTest
class BloggingPromptsServiceRemoteTests: RemoteTestCase, RESTTestable {

private let siteID = NSNumber(value: 1)
private let utcTimeZone = TimeZone(secondsFromGMT: 0)!
private let dateFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.locale = .init(identifier: "en_US_POSIX")
Expand Down Expand Up @@ -53,7 +54,7 @@ class BloggingPromptsServiceRemoteTests: RemoteTestCase, RESTTestable {
XCTAssertEqual(firstPrompt.content, "<!-- wp:pullquote -->\n<figure class=\"wp-block-pullquote\"><blockquote><p>Was there a toy or thing you always wanted as a child, during the holidays or on your birthday, but never received? Tell us about it.</p><cite>(courtesy of plinky.com)</cite></blockquote></figure>\n<!-- /wp:pullquote -->")
XCTAssertEqual(firstPrompt.attribution, "dayone")

let firstDateComponents = firstPrompt.date.dateAndTimeComponents()
let firstDateComponents = Calendar.current.dateComponents(in: self.utcTimeZone, from: firstPrompt.date)
XCTAssertEqual(firstDateComponents.year!, 2022)
XCTAssertEqual(firstDateComponents.month!, 5)
XCTAssertEqual(firstDateComponents.day!, 3)
Expand All @@ -66,7 +67,7 @@ class BloggingPromptsServiceRemoteTests: RemoteTestCase, RESTTestable {
XCTAssertEqual(secondPrompt.answeredUserAvatarURLs.count, 1)
XCTAssertTrue(secondPrompt.attribution.isEmpty)

let secondDateComponents = secondPrompt.date.dateAndTimeComponents()
let secondDateComponents = Calendar.current.dateComponents(in: self.utcTimeZone, from: secondPrompt.date)
XCTAssertEqual(secondDateComponents.year!, 2021)
XCTAssertEqual(secondDateComponents.month!, 9)
XCTAssertEqual(secondDateComponents.day!, 12)
Expand Down