Fix the previous patch.
PR: ports/131600 Submitted by: Cristiano Rolim Pereira <cristianorolim (at) hotmail.com>
This commit is contained in:
parent
e384901cb1
commit
bcf7ceab4d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229010
2 changed files with 11 additions and 6 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= opencascade
|
||||
PORTVERSION= 6.3
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= cad science
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
MASTER_SITE_SUBDIR= thierry
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
--- ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx.orig 2001-09-21 10:00:28.000000000 +0200
|
||||
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-01-24 11:45:15.000000000 +0100
|
||||
@@ -103,7 +103,7 @@
|
||||
+++ ./ros/src/STEPConstruct/STEPConstruct_AP203Context.cxx 2009-02-24 18:59:57.000000000 +0100
|
||||
@@ -103,6 +103,13 @@
|
||||
|
||||
Handle(StepBasic_CoordinatedUniversalTimeOffset) zone =
|
||||
new StepBasic_CoordinatedUniversalTimeOffset;
|
||||
- Standard_Integer shift = Standard_Integer(timezone);
|
||||
+ Standard_Integer shift = Standard_Integer((long long) timezone);
|
||||
+
|
||||
+ struct tm newtime;
|
||||
+ time_t ltime;
|
||||
+ ltime=time(<ime);
|
||||
+ localtime_r(<ime, &newtime);
|
||||
+ int timezone=newtime.tm_gmtoff;
|
||||
+
|
||||
Standard_Integer shift = Standard_Integer(timezone);
|
||||
Standard_Integer shifth = abs ( shift ) / 3600;
|
||||
Standard_Integer shiftm = ( abs ( shift ) - shifth * 3600 ) / 60;
|
||||
StepBasic_AheadOrBehind sense = ( shift >0 ? StepBasic_aobBehind :
|
||||
|
|
Loading…
Reference in a new issue