Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion code-gen-library/FormatDateLabelAsDateAndTime/WPF.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
//end imports

public class FormatDateLabelAsDateAndTime
Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsDateAndTime(object sender, object item)
d = (DateTime)item.GetType().GetProperty("Date").GetValue(item);

}
return d.ToString("yyyy-MM-dd HH:mm:ss");
return d.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
using Infragistics.Win.DataVisualization;
//end imports

Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsDateAndTime(AxisLabelInfo info)
d = (DateTime)info.Item.GetType().GetProperty("Date").GetValue(info.Item);

}
return d.ToString("yyyy-MM-dd HH:mm:ss");
return d.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
3 changes: 2 additions & 1 deletion code-gen-library/FormatDateLabelAsShortDate/WPF.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
//end imports

public class FormatDateLabelAsShortDate
Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsShortDate(object sender, object item)
d = (DateTime)item.GetType().GetProperty("Date").GetValue(item);

}
return d.ToString("MM/dd/yy");
return d.ToString("MM/dd/yy", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
3 changes: 2 additions & 1 deletion code-gen-library/FormatDateLabelAsShortDate/WindowsForms.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
using Infragistics.Win.DataVisualization;
//end imports

Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsShortDate(AxisLabelInfo info)
d = (DateTime)info.Item.GetType().GetProperty("Date").GetValue(info.Item);

}
return d.ToString("MM/dd/yy");
return d.ToString("MM/dd/yy", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
3 changes: 2 additions & 1 deletion code-gen-library/FormatDateLabelAsTime/WPF.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
//end imports

public class FormatDateLabelAsTime
Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsTime(object sender, object item)
d = (DateTime)item.GetType().GetProperty("Date").GetValue(item);

}
return d.ToString("HH:mm:ss");
return d.ToString("HH:mm:ss", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
3 changes: 2 additions & 1 deletion code-gen-library/FormatDateLabelAsTime/WindowsForms.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//begin imports
using System;
using System.Collections;
using System.Globalization;
using Infragistics.Win.DataVisualization;
//end imports

Expand Down Expand Up @@ -36,7 +37,7 @@ public string FormatDateLabelAsTime(AxisLabelInfo info)
d = (DateTime)info.Item.GetType().GetProperty("Date").GetValue(info.Item);

}
return d.ToString("HH:mm:ss");
return d.ToString("HH:mm:ss", CultureInfo.InvariantCulture);
Comment thread
wnvko marked this conversation as resolved.
Comment thread
wnvko marked this conversation as resolved.
}
//end eventHandler
}
Loading