1
irmtfan
qestion about "userTimeToServerTime" function
  • 2004/11/10 10:23

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


my site work with hegira date and in newbb2 my users inter hegira date in "Expire date" field at poll so it gives this error :
Quote:
End time must be set to future

i look at polls.php at newbb folder and see this line:
$poll->setVar("end_time"userTimeToServerTime(strtotime($end_time), $timezone));


for example user inter this in hegira date: 1383-03-12
and with strtotime function that convert to a number (time) ???
so how can i change it back to string format at "userTimeToServerTime" function in include/functions.php ???
using date("Y-m-d",$timestamp) reverse it or not ???

any help would be really appreciated

2
irmtfan
Re: question about "userTimeToServerTime" function
  • 2004/11/16 7:33

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


someone can help me?
the "strtotime" function change the string to a time that i dont know what is this???

strtotime("1383-07-20");
how can i get back this time to date string at "userTimeToServerTime"?

3
JasonMR
Re: question about "userTimeToServerTime" function
  • 2004/11/16 11:40

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


You should have provided info on the Hegira Date System, most of us are ignorant westerners

For those that would like to help, take a look at this

http://www.onsnumis.org/articles/muhammad-lingen.shtml

PS: your site doesn't render correctly in standard compliant browsers, such as Mozilla and Firefox.....tststs

Login

Who's Online

299 user(s) are online (272 user(s) are browsing Support Forums)


Members: 0


Guests: 299


more...

Donat-O-Meter

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

Latest GitHub Commits