Posts

Showing posts from January, 2022

Date Formatting in Kendo Grid and Handling Timezone

 In Kendo Grid, the dates are formatted to ' Mon Feb 01 2021 02:03:04 GMT+0530 (India Standard Time) '. To convert to a specific format or specific time zone we can try below options.  "kendo.parseDate(data.CreatedDate)" -- to keep the date data type same and convert to the local browser's timezone "kendo.parseDate(data.CreatedDate, 'MM-dd-yyyy')" -- to keep the data data type and format the data type to the local browser's timezone "kendo.toString(kendo.parseDate(data.CreatedDate), 'MM/dd/yyyy hh:mm:ss tt" -- to format the date to string format with whatever timezone it has received from the server. This converts hours into 12 hour format. when you replace hh with HH it will give 24 hour format.  For converting to specific timezone, we can try the below.. "CreatedDate.toLocaleString("en-US", {timeZone: "America/New_York"})" -- Works only in Chrome and Forefox. For IE, it throws an error.  "Cre

How run Docker for Desktop on Windows 10 with Anti-virus installed

 Docker for desktop depends on the machine's virtualization capabilities. In organizations, work machines are installed with anti virus software and this software do not allow to run the vmcompute.exe executable. This causes the Docker for Desktop to not to start the engine and run the daemon for container configuration. This security setup by your anti virus software is enforced as part of code flow guard. To override this default setting in the anti-virus software we need add an exception to ignore this setting. From windows 10, these restrictions are enforced as part of Windows Security Features. We can override this setting by following the below steps. (You can try these options after Hyper-V and WSL is properly setup on the machine for Windows Features) 1, Open "Windows Security" 2, Open "App & Browser control" 3, Click "Exploit protection settings" at the bottom 4, Switch to "Program settings" tab 5, Locate "C:\WINDOWS\System3