Hi, I posted an article but there were some info to be added later, so I needed to edit that article. After editing and clicking save, it says that the entered date is invalid (I use Persian Drupal and don't know its exact phrase to tell).
"1471094509" is the article date format (+04:30 Tehran Summer Time).
How should I enter date format to edit be done? And also what if I want to change the date? How should I enter these?
Thanks all

Comments

Jeff Burnz’s picture

Is that the actual field value, normally it would look like this:

2016-05-05 09:25:07 +0200

So then it's very easy to tell how to edit it.

1471094509 is a unix epoc time stamp, it means 08/13/2016 @ 1:21pm (UTC), I'm not sure you can use an epoc timestamp as a valid input - I might be wrong, but you would need the correct timestamp, for example using a converter to get it right: http://www.unixtimestamp.com/index.php

Otherwise I would assume you need to enter it in the correct format that is being used (but why you don't see it like I posed above is unusual I think).

You should check time and date settings: ~/admin/config/regional/date-time and see if someone made a date/time format with just this: U

SaeedFazlollahzadeh’s picture

Thanks, I used this link and was somehow useful, but the issue is that I cannot use time in past!
Every time I edit each article, I should remove the date format, so that it would be the latest article! I do not want this happens

Jeff Burnz’s picture

Why do you want to use a time in the past? Is this for display reasons - I mean you want to display/maintain the "created date/time" when you view a node?

I'm not sure why you can't use a time in the past actually, you should be able to do this (I mean I don't see any reason in Core that obviously restricts this option, but your site may have a workflow policy or feature that does disallow it).

yelvington’s picture

If you delete everything in the field it defaults to NOW().

SaeedFazlollahzadeh’s picture

The problem was for a module 'Calendar systems date properties', and now it's disabled, I can edit articles with no issues.
Thanks you two buddies for participating and replying to me.