you are viewing a single comment's thread
view the rest of the comments
[–] 7 points 7 months ago (1 child)

I tried to do this with a cronjob I didn't want to actually run.

It didn't work

  • source
  • hideshow 1 child comment
  • [–] 1 point 7 months ago*

    Ah you thought they did it like:

    if ( date == target_date ) { \ do the thing }

    But it was really:

    time_to_target = convert_date_to_time_to( target_date ); // always returns the closest time to whatever date you specify (even if the date doesn't exist (March 31st does exist))
    do_thing_in_x_time( the_thing, time_to_target );

  • source
  • parent