tw3116.pp 561 B

1234567891011121314151617181920212223
  1. { %fail }
  2. { Source provided for Free Pascal Bug Report 3116 }
  3. { Submitted by "Maarten Bekers" on 2004-05-23 }
  4. { e-mail: [email protected] }
  5. program eleforum;
  6. type
  7. Longint = Integer[4];
  8. const
  9. forum_DiffFromLocal = -2;
  10. function forum_ConvertDateToUser(ThisDate: Longint): Longint;
  11. begin
  12. if forum_DiffFromLocal < 0 then
  13. forum_ConvertDateToUser := ThisDate + Abs(forum_DiffFromLocal * 3600)
  14. else forum_ConvertDateToUser := ThisDate - Abs(forum_DiffFromLocal * 3600)
  15. end; { func. forum_ConvertDateToUser }
  16. end. { eleforum }