Drupal core allows saving node creation times before 1970 (see #271398: Allow negative timestamps in node.created) but this module doesn't.

It does however use the value 0 as a default to indicate that the published date hasn't been set. If we allow any date and not just those past the epoch we'd have to use NULL for this purpose, and change the schema accordingly.

Comments

mvc created an issue. See original summary.

fengtan’s picture

Status: Active » Needs review
StatusFileSize
new755 bytes

Here is a proposed patch...

mvc’s picture

I think this is good; the odds that someone will use timestamp 0 are very small and the patch in #2532576: Fix sorting on publication date so unpublished content appears newer already changes the default date anyways which will remove that issue.

  • jstoller committed 62d2215 on 7.x-2.x authored by fengtan
    Issue #3067980 by fengtan: Allow negative timestamps in...
jstoller’s picture

Status: Needs review » Fixed

Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.