mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
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:
parent
6a5abee024
commit
b94d7a72f0
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
5
gdate.c
5
gdate.c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user