I made some widget that used to as a digital clock formatted HH:mm:ss
below is code, or ref: SwiftUI iOS 14 Widget CountDown
let todayMidnight: Date // this property means today's midnight date&time Ex) 2022-08-30 0:0:0, yyyy-MM-dd HH:mm:ss
Text(todayMidnight, style: .timer)
before iOS16 beta, it works well but, not now
I know other way that insert Entry per second to timeline
but first time, I thk it doing well, but after some time, stopped
App WidgetSmith have problem same like me
is someone know about this?
This is a bug in iOS 16.0.
I have submitted feedback.
The good news is that this problem has been fixed in the latest version of iOS16.1
Related
I am using ng datepicker to pick date in my application. Below code displays correct calendar in chrome but not in IE and firefox. Please view the below image and pour in your experiences and suggestions. Currently our customer is live and this is causing major issues.
<ng-datepicker formControlName="Date"></ng-datepicker>
Moved from ng-datepicker to material datepicker to fix this issue.
Is it possible to display the date and the time in Ionic like if it's a real time clock (RTC)?
The only thing I found in the Ionic documents was a selector.
Does anyone have any suggestions?
let time = new Date().toLocaleTimeString();
You mean this ?
I have a weird problem with the Tapku Library Calendar.
I am showing events in Tapku Library Calendar. I am getting date from my server in America/Toronto Time zone. ie. -500.
My system and calendar time zone set to Toronto,Canada in Setting app.
So, the problem is when Calendar show one event in wrong day view (day tiles). Event is on 16th November 2011 and it is showing on 17th on to the Calendar.
11/16/2011 17:00 -0500
So I found solution to make time zone as GMT.
[dateFormatter setTimeZone:[NSTimeZone timeZoneWithAbbreviation:#"GMT"]];
And above working fine with Toronto time zone. Now, I set my timezone to Rome,Italy and It suppose to show that event on 16th too but it is showing on 17th.
so, the problem is if I keep above line it works fine with the Toronto, Canada Timezone and problem with the Rome,Italy Timezone and If I remove this line then it works fine for Rome,Italy and problem with Toronto,Italy.
For this I tried to set systemTimeZone and localTimeZone as well but still no luck.
So, what should I do to keep event on correct day view for all the timezones ?
Please let me know if you require any further details.
Here is an answer to a similar problem:
https://stackoverflow.com/a/9405625/220154
I think the tapku calendar sets GMT:0 as the date it uses to compare against your dates, so it mess a lot with timezones. probably you would need to reduct the date to GMT midnight when you are checking what dates to include in the calendar.
hope it helps.
All [NSTimeZone timeZoneForSecondsFromGMT:0]; should be replaced with [NSTimeZone systemTimeZone];
When it is not systemTimeZone you have to edit your dates coming out of the UIDatePicker to reflect time zone hour change, and all dates would be displayed a day later if you don't.
Here is the issue : https://github.com/devinross/tapkulibrary/issues/40
In my app i'm using the time picker for setting the time.It is working fine.But when i am changing the region format into chinese the picker view is changing but the i cant roll the minute bar.How to slve this issue.please help.
I got the bug fixed.
The problem was with the IBOutlet.When we shrink the size of picker the rolling bar of hour will not work properly.
Did you try to set US(or any other with "AM/PM" time format) locale explicitly to UIDatePicker's locale property?
I am using UIDatePicker in my App, which works fine for a Gregorian calendar.
But I want to use a Non-Gregorian calendar with the DatePicker, which I didn't succeed to do it!
I need it to do some conversion from Non-Gregorian to Gregorian dates, so it must work the same whatever the iPhone 'Locales' are.
Please can you answer this!
Your help is really appreciated,
Did you try setting the UIDatePicker's calendar property to a non-Gregorian calendar?