Lines 1-11
Link Here
|
1 |
--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200 |
1 |
--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2009-02-11 22:51:29.000000000 -0200 |
2 |
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-01-24 11:45:15.000000000 +0100 |
2 |
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-02-11 22:52:12.000000000 -0200 |
3 |
@@ -103,7 +103,7 @@ |
3 |
@@ -103,6 +103,13 @@ |
4 |
|
4 |
|
5 |
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone = |
5 |
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone = |
6 |
new StepBasic_CoordinatedUniversalTimeOffset; |
6 |
new StepBasic_CoordinatedUniversalTimeOffset; |
7 |
- Standard_Integer shift = Standard_Integer(timezone); |
7 |
+ |
8 |
+ Standard_Integer shift = Standard_Integer((long long) timezone); |
8 |
+ struct tm newtime; |
|
|
9 |
+ time_t ltime; |
10 |
+ ltime=time(<ime); |
11 |
+ localtime_r(<ime, &newtime); |
12 |
+ int timezone=newtime.tm_gmtoff; |
13 |
+ |
14 |
Standard_Integer shift = Standard_Integer(timezone); |
9 |
Standard_Integer shifth = abs ( shift ) / 3600; |
15 |
Standard_Integer shifth = abs ( shift ) / 3600; |
10 |
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60; |
16 |
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60; |
11 |
StepBasic_AheadOrBehind sense = ( shift >0 ? StepBasic_aobBehind : |
|
|