I have a template label in my GridView:
<asp:Label ID="Label1" runat="server"
Text='<%# String.Format("{0:t}", Eval("Time_From")) %>'>
</asp:Label>
But when my Gridview binds, it shows 1:00 PM in Mozilla but 13:00 in IE.
Why is this happening?
It looks like formatting picks different cultures, but I don't believe default ASP.Net site modifies "current culture" based on culture in incoming request... Maybe some of your other code changes current culture based on something?
Try to show Thread.CurrentThread.CultureInfo to see if server side culture is different.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With