Mar 09, 2021, 9:10 PM
Strange behavior of date serialization
Hello
The example below is reproducible , but just on SOME computer (means not all, so far I found just single problematic.
Are we doing something wrong with Culture or somth like that?
Example:
I have added couple of screenshots to demonstrate that. Probably something simple overseen, but I do not have an idea what
Thank you
The example below is reproducible , but just on SOME computer (means not all, so far I found just single problematic.
Are we doing something wrong with Culture or somth like that?
Example:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
[DirectMethod]
public void LoadDate(DateTime date)
{
X.Msg.Alert("", date).Show();
}
</script>
<script>
function loadDate() {
var date = <%= DateField1.ClientID %>.getValue();
console.info(date);
Ext.net.DirectMethods.LoadDate(date);
}
</script>
<html>
<head runat="server">
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" Namespace="" />
<ext:DateField runat="server" ID="DateField1" />
<ext:Button runat="server" Text="Click" OnClientClick="loadDate()"></ext:Button>
</form>
</body>
</html>
And now the problem is that on certain computer , the date that comes to the sever is one day less then the on choosen on UII have added couple of screenshots to demonstrate that. Probably something simple overseen, but I do not have an idea what
Thank you