mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 02:28:14 +02:00
* new bug
This commit is contained in:
parent
1452caeef2
commit
7e5fa195a3
23
tests/webtbf/tw3116.pp
Normal file
23
tests/webtbf/tw3116.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ %fail }
|
||||
|
||||
{ Source provided for Free Pascal Bug Report 3116 }
|
||||
{ Submitted by "Maarten Bekers" on 2004-05-23 }
|
||||
{ e-mail: fpc@elexer.com }
|
||||
program eleforum;
|
||||
|
||||
type
|
||||
Longint = Integer[4];
|
||||
|
||||
|
||||
const
|
||||
forum_DiffFromLocal = -2;
|
||||
|
||||
|
||||
function forum_ConvertDateToUser(ThisDate: Longint): Longint;
|
||||
begin
|
||||
if forum_DiffFromLocal < 0 then
|
||||
forum_ConvertDateToUser := ThisDate + Abs(forum_DiffFromLocal * 3600)
|
||||
else forum_ConvertDateToUser := ThisDate - Abs(forum_DiffFromLocal * 3600)
|
||||
end; { func. forum_ConvertDateToUser }
|
||||
|
||||
end. { eleforum }
|
Loading…
Reference in New Issue
Block a user