I want to display the time zone in the calendar edge, it will be like that:
GMT+x, do you have any idea if that's possible?
thank you
First, you would want the latest (0.36.0) version of RBC, which includes timezone support when using the momentLocalizer of the new luxonLocalizer. Second, you cannot currently override the internal TimeGutter component. You would have to replicate all of the views that use TimeGrid and copy over code to write that in yourself.
Related
I created a DateSpinner in my Desktop app,but the spinner is not displaying the month,day or year properly.half of the part was not visible to the user.
Can you please help to resolve the issue?
![DateSpinner Image][![Below link shows how the date spinner visible to the user]1]1
The DateSpinner class has been deprecated for a while. I suggest using the Picker component which is better looking overall. See: https://www.codenameone.com/javadoc/com/codename1/ui/package-summary.html
I use DateTime Picker within my Codenameone App. On my Android-Device it looks unreadable - see attached Screenshot. Is there any way to fix this corrupt layout?
Date-time is a type that isn't supported on Android. We recommend using separate pickers for date and time to achieve a better UX example. You can detect this using this code (assuming static import of CN):
if(isNativePickerTypeSupported(PICKER_TYPE_DATE_AND_TIME)) {
// ...
}
I am using XPages 8.5.3 without the extension library. I would like to add a calendar view to an XPages. Is there any way of doing this without using the XPages Calendar from OpenNTF?
The short answer is "not easily".
The long answer depends on the layout you want to display (day, week, month, time components etc). Once you have that, you will create a calendar view in Designer, use getAllEntriesByKey() using a date range, and you have your data. Then you need to construct your UI using nested repeat controls to display the "boxes" for each date / time, adding the content to display (ensuring if you have too much it doesn't distort the layout), test it under all circumstances (months have different numbers of days, not forgetting leap years). As the person who wrote that chapter of XPages Extension Library, documenting the components involved covered a number of pages - it's not a simple piece of code!
I've been involved with XPages since 8.5.0, I'm not aware of any blog posts showing how to do it prior to Extension Library.
If this is critical functionality for the application, I would strongly recommend deploying XPages Extension Library or Upgrade Pack 1 (if it's still available). If that's not an option, I would strongly recommend just presenting the content as a list rather than a calendar layout.
Paul is right: not easy.
A second path: pick a pure Javascript client side calendar implementation (like this one) and feed it through a Json stream. Since you are on "vintage Domino", instead of using the Rest control, you need to use an XAgent.
Let us know what worked out for you
I am working on an arabic language support project using smartclient 10.0.
It requires an arabic(hijri) calendar support for date picker component.
How can I add arabic(hijri) calendar for date picker component in smartclient?
I suppose you want to define month names in arabic, and maybe the picker grid to be ordered in another way. Then you will need to extend the DateItem for DynamicForm. Check here: http://www.smartclient.com/docs/10.0/a/b/c/go.html#class..Class
http://www.smartclient.com/docs/10.0/a/b/c/go.html#object..ClassFactory
If that is not the case, and you just need to define the order of days, months, years according to arabic specifics, please check here:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#type..DateInputFormat
http://www.smartclient.com/docs/10.0/a/b/c/go.html#type..DateDisplayFormat
Also take a look here:
http://www.smartclient.com/docs/10.0/a/b/c/go.html#group..i18n
Hope this helps.
I would like to set date to default time zone. At this moment my date looks like this: 2013-04-08T22:00:00 +02:00. I need to set my date to +00:00.
I tried to get the offset of my date and I received -120. Is it possible to set time offset? Are there maybe any better solutions?
Anybody an idea?
I'm using EXT JS.
JavaScript's Date object is bound to the time zone of the computer itself. There is no way to change the zone offset programmatically to an arbitrary value.
There is some work going on to add this functionality to the Moment.js library, but it is still in progress.
If you are just looking to get the time at UTC in ISO format, you can use .toISOString()
If you are speaking about code that is specific to the Ext.Date object from ExtJS, please edit your question and post some sample code so we can get a better idea of what you are talking about. Thanks.