function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prema -Prema - 

Please help, I am facing issues in my vf page that whenever the User is trying to create schedule then sometimes it's not picking the right time..

The reason I am not able to reproduce the error because it's happening at the User's end.. Any idea why it's happening? He has tried in other browsers as well but still the same issue..
The logic which is mentioned in class is :
 
//Check for the time value if before 12 and accordingly check for AM or PM value
            starttime  = starttime +(startTimeValue.Hour()<12?clsStaticVariables.AM:clsStaticVariables.PM);
            endTime = endTime +(endTimeValue.Hour()<12?clsStaticVariables.AM:clsStaticVariables.PM);

 
Prema -Prema -
Please check, this is the time which is incorrect and causing the issues..