Changeset 14025 for trunk/sources
- Timestamp:
- 07/08/16 14:16:05 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/TimeSpanValue.cs
r12012 r14025 21 21 22 22 using System; 23 using System.Globalization; 23 24 using System.Text; 24 25 using HeuristicLab.Common; … … 52 53 protected virtual bool Validate(string value, out string errorMessage) { 53 54 TimeSpan val; 54 bool valid = TimeSpan.TryParse (value, out val);55 bool valid = TimeSpan.TryParseExact(value, "c", CultureInfo.CurrentCulture, out val); 55 56 errorMessage = string.Empty; 56 57 if (!valid) { … … 68 69 protected virtual bool SetValue(string value) { 69 70 TimeSpan val; 70 if (TimeSpan.TryParse (value, out val)) {71 if (TimeSpan.TryParseExact(value, "c", CultureInfo.CurrentCulture, out val)) { 71 72 Value = val; 72 73 return true;
Note: See TracChangeset
for help on using the changeset viewer.