0

ZK Calender Begin time with min

asked 2018-06-29 19:20:19 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2599 2 8
http://emrpms.blogspot.in...

updated 2018-07-03 10:49:58 +0800

cor3000 gravatar image cor3000
4143 1 7
ZK Team

https://www.zkoss.org/wiki/SmallTalks/2010/November/NewFeaturesofZKCalendar2.1.0

Hello, I want to set as 8.30. It is giving error

java.lang.NumberFormatException: For input string: "8.30"

<calendars id="calendars"
                        visible="@load(vm.calenderView)" firstDayOfWeek="Sunday"
                        height="100%" timeslots="4" beginTime="8.30" endTime="20"
                        onEventCreate="@command('onSelectAppt',v=event)"
                        onEventEdit="@command('onSelectAppt',v=event)">
                        <attribute w:name="getNewEventTimeSlots_">
                            function() { return 1; }
                        </attribute>
                    </calendars>
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-07-03 10:55:30 +0800

cor3000 gravatar image cor3000
4143 1 7
ZK Team

updated 2018-07-03 10:59:11 +0800

according to the Java docs the method setBeginTime requires an integer. So you can only set full hours there. The error message in your case is expected reflecting the current API.

link publish delete flag offensive edit

Comments

@cor3000 - Thank you for clarity. But Is there any alternative where we can set beginTime 8.30 AM and endTime 5.30 PM ?

kd16 ( 2018-07-03 13:21:18 +0800 )edit

as of now there's no simple way to change that, it requires changing the implementation

cor3000 ( 2018-07-03 17:22:45 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2018-06-29 19:20:19 +0800

Seen: 9 times

Last updated: Jul 03

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More