1
Jace303
piCal and dates prior to 1970
  • 2003/11/9 16:25

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


Does anyone have a suggestion how to correctly enter birthdays? You may have noticed that it's not possible to add dates earlier then 1970. I could enter birthdays starting with the current year, but then the year of birth would get lost. Of course I could add the year of birth into the event description, but I think that would be a quite dirty workaround.

2
GIJOE
Re: piCal and birthdays
  • 2003/11/9 22:29

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


hi Jace303.

Though Unix timestamp can't treat date before 1970 well,
your demand is reasonable extremely.

If I can, I want to implement it by adding the extra field of YEAR in the next major version.
This implementation will be limited for schedule view of detail & editing.
The calendar view can still display only between 1970-2037 because of Unix timestamp limitation.


3
Jace303
Re: piCal and birthdays
  • 2003/11/10 9:48

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


Thanks for your answer and your efforts to solve this problem.

I would also suggest to add the possiblity for configuring the date format for the next version of piCal. Date format in europe differs a little bit from the u.s./japenese format (i.e. "d.m.Y." is most commonly used in german speaking countries).

4
GIJOE
Re: piCal and birthdays
  • 2003/11/11 7:24

  • GIJOE

  • Quite a regular

  • Posts: 265

  • Since: 2003/8/13


hi Jace303.

Quote:

I would also suggest to add the possiblity for configuring the date format for the next version of piCal. Date format in europe differs a little bit from the u.s./japenese format (i.e. "d.m.Y." is most commonly used in german speaking countries).
If you means the format in "event block", I've fixed it in the version >= 0.506.
If not, this is the issue of language files.

You can change the order by editing pical_constants.php
define('_PICAL_FMT_MD','%2$s %1$s') ;
define('_PICAL_FMT_YMD','%3$s %2$s %1$s') ;
define('_PICAL_FMT_YMW','%3$s %2$s %1$s') ;
define('_PICAL_FMT_YEAR_MONTH','%2$s %1$s') ;


5
Jace303
Re: piCal and birthdays
  • 2003/11/11 8:35

  • Jace303

  • Just popping in

  • Posts: 38

  • Since: 2003/11/5


I came across this issue in the "coming events" block. The date format used there is hardcoded in piCal.php.

Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Sep 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!