DatePickerIOS in react-native and user locale - react-native

We've implemented DatePickerIOS from react-native but it doesn't seem to respect the device locale for dates.
I'm in Norway right now, and it is correctly showing a 24 hour picker without AM/PM, but the text still says "Today", "Thu 5 Oct", "Fri 6 Oct". It should be more like "I dag", "Tor 5 Okt", "Fre 6 Okt"
RN version 0.47.1

open 'Info.plist' file in 'ios' folder using Xcode or other text editors, change 'CFBundleDevelopmentRegion' to your locale's name, then retry

Related

MPV player time format HH:MM:SS or HH:MM:SS:mmm

does anybody know, if it is possible to set default displayed time format including milliseconds in mpv.conf ?
Now I need click on time to switch to millisecnds, because option ,,timems'' from manual https://mpv.io/manual/master/ doesn't work.
Thanks for help
Peter
from window:
click the LEFT timestamp
from command:
mpv .. --script-opts=osc-timems=yes ..
or add in lua-settings/osc.conf:
timems=yes
mpv --osd-fractions --osd-level=2
or add to config
To toggle show - hide with keyboard, append to to input.conf:
o cycle-values osd-level 2 1
#^-- or any other key
yes, add the line osd-fractions to mpv.config. this will show milliseconds in the OSD (which will appear in mpv's terminal display).
if you want to see milliseconds in the OSC (in the video window), also add the line osd-level=2 to mpv.conf. this will add a status message with the OSD time display (which is now in milliseconds) to the top of the window.
Or you can click the time display on the video each time you load a video.

QML calendar not working with S4

I have tried my app in Samsung Galaxy S4 and for some reason the calendar doesn't open in the correct day and the Month at the top doesn't show the correct month.
It works in my laptop and also in my Nexus4. Therefore, it seems to be a problem with the Galaxy phones.
Any suggestions to fix this problem? Has anyone had this problem before?
This is the code I'm testing:
-- DatePicker.qml
...
property date p_date
Calendar {
anchors.fill: parent
minimumDate: 1950
maximumDate: 2050
selectedDate: p_date
onClicked: {
p_date=selectedDate
accepted()
stack.pop()
}
}
-- Form.qml
...
onClicked: {stack.push(id_dialogDate)}
...
Component {
id: id_dialogDate
DatePicker {}
}
The expected output when DatePicker is opened should show the Calendar in the correct month with the chosen date highlighted. Say for instance I'm opening the Calendar choosing 22/March/15:
The result is:
![][1]
The Month is correct at the top, but the calendar is really showing February. Look at the last day of the month: 28
Now when I click and jump to the next month, it shows:
![][2]
The month is showing April at the top, but the calendar is really showing March and the date I chose 22/March is highlighted.
Any suggestion?
Note: I couldn't attached the screenshots. The system ask me for 10 reputation points :(.

Bootstrap 3 - DateTimePicker - Can time portion be ignored?

I'm using the Bootstrap 3 DateTimePicker. When the user tabs into a field using this component, the current date and time is automatically entered. In some cases this is what I want. However, there are other times I want the component to completely ignore the time portion and not entered by default in a field. I can't seem to find a way to do this.
This will only display the date by default, try and see
$('.future');.datetimepicker({
pickTime: false,
format: 'DD/MM/YYYY'
});

set hour in DateTimePicker more than 23

In my project , I need using Timepicker with format HH:MM , but I use it like duration , not a time , so is it possible to increase HH upto 99 , not stop in 23 !
I using datetime picker from this page : http://tarruda.github.io/bootstrap-datetimepicker/
After several time to edit js file , I found that I must change js code in "getUTCHours()" method from http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js file to get my goal !
But I cannot find the define of this method :(
Can anyone help me ? Thanks all in advances !
Valentino !
Yes it is possible, the code has a condition that
whenever it detects the hour is equal or greater than 23
it will reset to 23.
In this code there is no limit.
In Bootstrap.timepicker.js
Search for "23" or "24" in the code
You will find the following
`this.hour>=24?this.hour = 23`
I changed to
this.hour>=24?this.hour = this.hour without Limit.
To make it Up to 99 changue it to.
`this.hour>99?this.hour = 99` **UP to 99**
Be sure to use
`showMeridian = false`,
to make this work.
Im using "time" variable type in MYSQL and is working just fine.
Now it Works.

UIDatePicker appears disabled when setting time programmatically

I have a UIDatePicker set for UIDatePickerModeTime. I am using the following code to set the time in my datePicker:
[self.oTimePicker setDate:dateFromString(self.oStartTime.text, #"HH:mm")];
[self.oTimePicker reloadInputViews];
which works but then the datePicker appears gray in color (see image below; it appears the datePicker is disabled), and sets the time to 06:00, no matter what is selected. Here is an image of the results; notice that I have picked 1:30 PM, but the text box shows 06:00; in addition, no matter what I select, nothing changes (the time displays what I pick (here 1:30 PM), but the value in the datePicker remains at 14:00 (but doesn't show 14:00 verified with NSLog), no matter what I select. Any ideas of what could be causing this?
It looks like you are having a time-zone issue with UIDatePicker. That is why it is showing one time in a UIDatePicker and another in your label (Washington has -7 time difference). There are lot of questions and answers about this topic (one example: iphone UIDatePicker showing wrong date in Central Timezone).
Another problem you are having is that UIDatePicker becomes disabled. This issue can be caused if you are setting datePicker.minimumDate to current date and using UIDatePickerModeTime.