mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix day offset
This commit is contained in:
parent
b60449ee0f
commit
9a2cfe9ed8
@ -828,7 +828,7 @@ private final class MonthComponent: CombinedComponent {
|
||||
|
||||
let monthAction = context.component.monthAction
|
||||
let firstDayStart = Int32(context.component.model.firstDay.timeIntervalSince1970)
|
||||
let lastDayStart = firstDayStart + 24 * 60 * 60 * Int32(context.component.model.numberOfDays)
|
||||
let lastDayStart = firstDayStart + 24 * 60 * 60 * Int32(context.component.model.numberOfDays - 1)
|
||||
|
||||
context.add(title
|
||||
.position(CGPoint(x: titleFrame.midX, y: titleFrame.midY))
|
||||
|
Loading…
x
Reference in New Issue
Block a user