mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Merge branch 'python-silent-conversion' of git://github.com/c-holtermann/gnucash into maint
This commit is contained in:
commit
df457622b5
@ -109,8 +109,6 @@
|
|||||||
PyDateTime_IMPORT;
|
PyDateTime_IMPORT;
|
||||||
struct tm t;
|
struct tm t;
|
||||||
gnc_localtime_r(&$1, &t);
|
gnc_localtime_r(&$1, &t);
|
||||||
printf("\nConverting %d hours and %d minutes in zone %ld %s to python local time\n",
|
|
||||||
t.tm_hour, t.tm_min, t.tm_gmtoff/3600, t.tm_isdst ? "DST" : "STD");
|
|
||||||
$result = PyDateTime_FromDateAndTime(t.tm_year + 1900, t.tm_mon + 1,
|
$result = PyDateTime_FromDateAndTime(t.tm_year + 1900, t.tm_mon + 1,
|
||||||
t.tm_mday, t.tm_hour, t.tm_min,
|
t.tm_mday, t.tm_hour, t.tm_min,
|
||||||
t.tm_sec, 0);
|
t.tm_sec, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user