-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I have a ZK calendar at my JSP page.I have modified the language for ZK calendar as Arabic language and its looking perfect in Arabic language.The problem is that when I click on any date at calendar I m getting wrong dates from the events fired.I think its an issue due to the alignment that has been changed from LTR to RTL but the event fired is still referring old alignment. My code looks like
public void onEventCreate$calendar(CalendarsEvent event) {
formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm");
try {
String windowCheck = hiddenlabel.getValue();
if (windowCheck.equalsIgnoreCase("mainPage")) {
String stDate = "";
String endDate = "";
if (event != null) {
//Here I am getting wrong dates
stDate = formatter.format(event.getBeginDate());
endDate = formatter.format(event.getEndDate());
}
String uri = "DummyFile.jsp?eventaction=createevent&startDate=" + stDate + "&endDate=" + endDate;
java.net.URLEncoder.encode(uri, "UTF-8");
Executions.getCurrent().sendRedirect(uri, "_self");
}
}
catch (Exception e){}
}
Please help its very urgent.
Hello Aasifi,
Please refer to the following post, which has information on how to set the timezone:
http://forum.zkoss.org/question/41343/calendars-timezone/
Furthermore please refer to the following url for more information:
http://books.zkoss.org/wiki/ZK%20Calendar%20Essentials/Working%20with%20ZK%20Calendar/Displaying%20ZK%20Calendar%20Event%20Data/Managing%20Event%20Data/Multiple%20Timezones
Best Regards,
Darksu
Asked: 2014-12-18 11:54:15 +0800
Seen: 11 times
Last updated: Dec 27 '14