mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
server: Cosmetic fix for methodname in ApiDispatcher
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
63481ecb34
commit
b00ed17f4b
@ -619,9 +619,9 @@ public class ApiDispatcher {
|
||||
synchronized (format) {
|
||||
Date date = format.parse(paramObj.toString());
|
||||
if (field.getName().equals("startDate")) {
|
||||
date = massageDate(date, 0, 0, 0);
|
||||
date = messageDate(date, 0, 0, 0);
|
||||
} else if (field.getName().equals("endDate")) {
|
||||
date = massageDate(date, 23, 59, 59);
|
||||
date = messageDate(date, 23, 59, 59);
|
||||
}
|
||||
field.set(cmdObj, date);
|
||||
}
|
||||
@ -717,7 +717,7 @@ public class ApiDispatcher {
|
||||
return matcher.matches();
|
||||
}
|
||||
|
||||
private static Date massageDate(Date date, int hourOfDay, int minute, int second) {
|
||||
private static Date messageDate(Date date, int hourOfDay, int minute, int second) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(date);
|
||||
cal.set(Calendar.HOUR_OF_DAY, hourOfDay);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user