Shouldn't the SQLConnection's DatetimeReadFormat affect TZFormatSettings...?
Posted: 01.09.2021, 14:41
Hello,
I have a connection, where I set the DatetimeReadFormat property to yyyy.mm.dd hh:nn:ss. Displaying the information in a DBGrid works just fine.
However, when I copy the data with ClipBoard.AsText := Self.SelectedField.AsString; this format is omitted and resets to TZFormatSettings and results something like "2018/ 12/ 12/ 0:00:00".
So, the question is, shouldn't DatetimeReadFormat affect the format settings inside a TZConnection...?
If yes, an important note to add is that these properties are NOT set design-time but runtime, before calling .Connect.
I have a connection, where I set the DatetimeReadFormat property to yyyy.mm.dd hh:nn:ss. Displaying the information in a DBGrid works just fine.
However, when I copy the data with ClipBoard.AsText := Self.SelectedField.AsString; this format is omitted and resets to TZFormatSettings and results something like "2018/ 12/ 12/ 0:00:00".
So, the question is, shouldn't DatetimeReadFormat affect the format settings inside a TZConnection...?
If yes, an important note to add is that these properties are NOT set design-time but runtime, before calling .Connect.