mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-05 20:26:28 +08:00
Sync changes from upstream repository
Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: Bozo <bozo@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Curtis Wensley <curtis.wensley@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Joshua Kennedy <joshuakennedy102@gmail.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: Luis E. Fraguada <luis@mcneel.com> Co-authored-by: Mathias Fuchs <mathias@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Tim Hemmelman <tim@mcneel.com>
This commit is contained in:
@@ -5339,8 +5339,11 @@ void ON_RdkDocumentDefaults::CreateXML(void)
|
||||
p.SetParam(ON_RDK_SUN_DAYLIGHT_SAVING_ON, false);
|
||||
p.SetParam(ON_RDK_SUN_DAYLIGHT_SAVING_MINUTES, 60);
|
||||
|
||||
int cy = 0, cm = 0, cd = 0; double ch = 0.0;
|
||||
ON_SunEngine::GetCurrentLocalDateTime(cy, cm, cd, ch);
|
||||
|
||||
ON_SunEngine engine(ON_SunEngine::Accuracy::Minimum);
|
||||
engine.SetLocalDateTime(2000, 1, 1, 12.0);
|
||||
engine.SetLocalDateTime(cy, cm, cd, ch);
|
||||
int y = 0, m = 0, d = 0; double h = 0.0;
|
||||
engine.LocalDateTime(y, m, d, h);
|
||||
p.SetParam(ON_RDK_SUN_DATE_YEAR, y);
|
||||
|
||||
Reference in New Issue
Block a user