If Julian is valid, we have to update the dmy representation before

1998-12-02  Havoc Pennington  <hp@pobox.com>

* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
This commit is contained in:
Havoc Pennington 1998-12-02 23:47:02 +00:00 committed by Havoc Pennington
parent 6a5abee024
commit b94d7a72f0
10 changed files with 72 additions and 2 deletions

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -1,3 +1,11 @@
1998-12-02 Havoc Pennington <hp@pobox.com>
* gdate.c (g_date_set_month): If Julian is valid, we have to
update the dmy representation before setting the components
of it.
(g_date_set_day): Same.
(g_date_set_year): Same.
1998-12-02 Havoc Pennington <hp@pobox.com>
* testgdate.c, testgdateparser.c: Two new files. This is kind of

View File

@ -802,7 +802,8 @@ g_date_set_month (GDate *d,
{
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_month (m));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->month = m;
@ -820,6 +821,7 @@ g_date_set_day (GDate *d,
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_day (day));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->day = day;
@ -837,6 +839,7 @@ g_date_set_year (GDate *d,
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_year (y));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->year = y;

View File

@ -802,7 +802,8 @@ g_date_set_month (GDate *d,
{
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_month (m));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->month = m;
@ -820,6 +821,7 @@ g_date_set_day (GDate *d,
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_day (day));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->day = day;
@ -837,6 +839,7 @@ g_date_set_year (GDate *d,
g_return_if_fail (d != NULL);
g_return_if_fail (g_date_valid_year (y));
if (d->julian && !d->dmy) g_date_update_dmy(d);
d->julian = FALSE;
d->year = y;