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
1 change: 1 addition & 0 deletions StdFuncs.pas
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ function StringIsDateTimeDefValue(const s:string):boolean;
'N': Result:=(s='NULL') or (s='NOW');
'T': Result:=(s='TODAY') or (s='TOMORROW');
'Y': Result:=(s='YESTERDAY');
'L': Result:=(s='LOCALTIME') or (s='LOCALTIMESTAMP')
end;
end;

Expand Down
2 changes: 1 addition & 1 deletion pFIBDataSet.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ procedure TpFIBDataSet.DoOnNewRecord;
if de <> 'NULL' then
if Fields[i] is TDateTimeField then
begin
if StringInArray(de, ['NOW','CURRENT_TIME','CURRENT_TIMESTAMP']) then
if StringInArray(de, ['NOW','CURRENT_TIME','CURRENT_TIMESTAMP','LOCALTIME','LOCALTIMESTAMP']) then
asDateTime := Now - vDifferenceTime
else
if StringInArray(de, ['TODAY', 'CURRENT_DATE']) then
Expand Down