John Ralls
ab72874ec1
Add GncDate and GncDateTime constructors and accessors:
...
GncDateImpl constructor and ymd accessor for GncDate
Std::string constructor and nsecs and GDate accessors for GncDateTime.
2015-04-28 13:40:48 -07:00
John Ralls
3f87f56e2e
Implement formatted output.
2015-04-28 10:48:56 -07:00
John Ralls
cbb01c94ae
Implement struct tm constructor and cast, offset accessor.
2015-04-28 10:48:56 -07:00
John Ralls
e5861dc119
Add operator time64() to enable static_casting a GncDateTime.
2015-04-28 10:48:56 -07:00
John Ralls
10daa27abc
Default constructors return the epoch.
...
GncDate::today() and GncDateTime::now() get the current date and time.
Suggested in a C++Now talk by Jeff Garland, the author of boost::date_time.
Reasoning is that getting time from the system clock is expensive and so
shouldn't be done unless needed.
2015-04-28 10:48:56 -07:00
John Ralls
01f5a9c04c
Update filename, copyright in comments for gnu-date.c
2015-04-28 10:48:56 -07:00
John Ralls
307c08e2b5
Begin GncDate and GncDateTime classes.
...
Goal is to get the boost::date_time code out of gnu-date.c, to provide
date-time functionality directly to C++, and to replace GDate.
2015-04-28 10:48:56 -07:00
John Ralls
09356976cc
Fix test-aqb timestamp so that it's 29 August in most timezones.
2015-04-28 10:48:55 -07:00
John Ralls
d0ae8c370e
Fix stray if and tab-indentation.
2015-04-28 10:48:55 -07:00
John Ralls
d0b916c6f9
Fix offset calculations for TZif2 files.
2015-04-28 10:48:55 -07:00
John Ralls
5a378e1e91
Fix GCC type-deduction failure.
2015-04-28 10:48:55 -07:00
John Ralls
197d43f4a1
Rewrite test-gnc-date.c to not use GDateTime for reference.
2015-04-28 10:48:55 -07:00
John Ralls
327ef838ea
Correct a couple of incorrect comments.
2015-04-28 10:48:55 -07:00
John Ralls
e938b39ff2
Remove gnc_time_utc.
...
It produces exactly the same result as gnc_time: The current utc time.
2015-04-28 10:48:55 -07:00
John Ralls
4f90e4e050
Get rid of gettimeofday call in Transaction.
...
We were throwing away the microseconds anyway.
2015-04-28 10:48:55 -07:00
John Ralls
99efb5d446
Reimplement gnc_timespec_to_iso8601_buff to handle microseconds.
...
Just because there are tests that do. Removing fractional seconds (which
are never used in live code) will be a separate step.
2015-04-28 10:48:55 -07:00
John Ralls
23687ee21c
Replace random uses of GDateTime.
2015-04-28 10:48:55 -07:00
John Ralls
eb3bafed7f
Ensure HH:MM:SS field separators are in place for timezone offsets
2015-04-28 10:48:55 -07:00
John Ralls
ae11e3506f
Boost::date_time uses "%q" to format timezones by offset.
2015-04-28 10:48:54 -07:00
John Ralls
154911e23f
Align GDate's month (1-12) with struct tm's (0-11).
...
Wow. This has gone undetected for an amazingly long time.
2015-04-28 10:48:54 -07:00
John Ralls
32852ec49b
Ensure that gnc_timespec_to_iso8601_buff's buff is initialized empty.
...
So that there's no trailing garbage on the string.
2015-04-28 10:48:54 -07:00
John Ralls
83f2627bbb
Implement gnc_timegm correctly.
2015-04-28 10:48:54 -07:00
John Ralls
6fd68c3caa
Fix missed change from PLATFORM_OSX to GNC_PLATFORM_OSX.
2015-04-28 10:48:54 -07:00
John Ralls
9f2d3843f8
Miscellaneous corrections to pass tests.
...
Includes removing some tests that are either no longer relevant or which
only tested test conditions.
2015-04-28 10:48:54 -07:00
John Ralls
fb6992f303
Separate the initial case so that it ends the year before the first transition.
...
This permits the zone_vector to actually get the first transition.
2015-04-28 10:48:54 -07:00
John Ralls
23d4e4a56f
Correct week determination when computing DST transitions from timestamps.
2015-04-28 10:48:54 -07:00
John Ralls
c7ca7850df
Correct gncBillTerm's use of gnc_date_get_last_mday() to use the struct_tm form of month.
...
I.e., where January is 0.
2015-04-28 10:48:54 -07:00
John Ralls
a07c78e511
Start fixing up test-gnc-date.c for boost::date_time.
2015-04-28 10:48:54 -07:00
John Ralls
6c6153b5b6
Replace GDateTime dependency with boost::date_time.
2015-04-28 10:48:54 -07:00
John Ralls
6673128b9f
Rewrite gnc_gdate_set_time64 to not depend upon GDateTime.
2015-04-28 10:48:54 -07:00
John Ralls
19f64ad395
Restore GLIB_CFLAGS to test_kvp_value, required for GVALUE stuff.
2015-04-28 10:48:53 -07:00
John Ralls
2061026f21
Make TimeZoneProvider::get const noexcept.
2015-04-28 10:48:53 -07:00
John Ralls
d98ddd12a7
Implement TimezoneProvider for POSIX.
2015-04-28 10:48:53 -07:00
John Ralls
280b7223bf
Partial posix implementation
2015-04-28 10:48:53 -07:00
John Ralls
5983df7ad3
Windows implementation of TimeZoneProvider.
2015-04-28 10:48:53 -07:00
John Ralls
45170bb5eb
Basic tests for TimeZoneProvider.
2015-04-28 10:48:53 -07:00
John Ralls
15a0d5d25f
Merge branch 'maint'
2015-04-28 10:47:47 -07:00
John Ralls
61021c4620
Fix some abs() errors from new clang and gcc versions.
2015-04-28 10:35:34 -07:00
Geert Janssens
405a26b6ac
Add missing language in configure.ac
...
This was intended to be part of the previous commit...
2015-04-28 18:53:17 +02:00
Мирослав Николић
906f60e46f
New translation: serbian
...
Copied from the translation project
2015-04-28 18:50:41 +02:00
Bill Nottingham
e54af98b05
Bug 747812 - unset LDFLAGS when unsetting CFLAGS
...
Since some LDFLAGS settings depend on corresponding CFLAGS ones,
e.g. -fPIC, unsetting only CFLAGS will cause the test-compile to
fail because of the mismatched flags.
2015-04-25 16:11:23 -07:00
Geert Janssens
df1fc7d903
Fix dbi driver detection on linux and similar
...
This is a follow up on the fix for
Bug 747300 - SQL backend missing from most recent DMG?
which broke dbi driver detection on linux
2015-04-25 09:27:57 +02:00
Mechtilde
ef8dbd1d9a
Update of de.po
...
4401 translated messages, 164 fuzzy translations, 56 untranslated
messages.
2015-04-24 01:03:33 +02:00
Christian Stimming
ea38f2b8e6
Merge branch 'maint'
2015-04-22 22:40:48 +02:00
Christian Stimming
e9b6ee74ad
Cutecash: Switch from guile to xml to manage our iso-currencies source file
...
Copies 87520cdde4
into the cmake build system.
2015-04-22 22:39:47 +02:00
Frank H. Ellenberger
274113b347
Improve "Auto pay on posting" message
...
http://lists.gnucash.org/logs/2014/11/2014-11-29.html#T11:14:29
Additional remove some empty placeholders
2015-04-16 21:39:45 +02:00
Christian Stimming
f9376318ad
Bug 747377: Fix overly restrictive input validation for IBAN of SEPA transfer.
...
Only in some countries the IBAN is really restricted to numeric-only
(most notably in Germany, "DE"). In some other countries parts of the
IBAN may be alphas. These checks could be extended for more countries,
but since aqbanking with the SEPA transfers is used mostly in Germany,
we just leave it with the exception rule for Germany.
2015-04-14 21:12:06 +02:00
Christian Stimming
c46c0a9e79
Bug 747377: Fix overly restrictive input validation for IBAN of SEPA transfer.
...
Only in some countries the IBAN is really restricted to numeric-only
(most notably in Germany, "DE"). In some other countries parts of the
IBAN may be alphas. These checks could be extended for more countries,
but since aqbanking with the SEPA transfers is used mostly in Germany,
we just leave it with the exception rule for Germany.
2015-04-12 22:27:50 +02:00
Frank H. Ellenberger
79546ff6a5
Note in txf-help*.scm that changes should be applied to
...
gnucash-docs/help/*/Help_txf-categories.xml
Code part of cross linking
2015-04-10 21:11:50 +02:00
Alex Aycinena
becec4022b
Bug 740955 - Correct general journal and general ledger reports to properly handle Use-Split-Action-For-Num option in File->Properties.
2015-04-08 12:13:55 -07:00