1 |
|
/* |
2 |
|
* timer_beos.cpp - Time Manager emulation, BeOS specific stuff |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2002 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
21 |
|
#include <KernelKit.h> |
22 |
|
|
23 |
|
#include "sysdeps.h" |
24 |
+ |
#include "macos_util.h" |
25 |
|
#include "timer.h" |
26 |
|
|
27 |
|
#define DEBUG 0 |
47 |
|
|
48 |
|
uint32 TimerDateTime(void) |
49 |
|
{ |
50 |
< |
time_t utc_now = time(NULL); |
50 |
< |
long tz = timezone; |
51 |
< |
time_t local_now = utc_now - tz; |
52 |
< |
if (daylight) |
53 |
< |
local_now += 3600; |
54 |
< |
return (uint32)local_now + TIME_OFFSET; |
50 |
> |
return TimeToMacTime(time(NULL)); |
51 |
|
} |
52 |
|
|
53 |
|
|