Jump to content

Change gmdate() to strftime()!


Guest MrWante

Recommended Posts

Change gmdate() to strftime()!

Hi!

Finally updating to 2.2 and realizing that I think this should be a feature! Why not really?

Searched the forums here and saw that a few people have made the same request, but I thought I would write a new topic and voice this request again! :)

Also with the help of setlocale(LC_TIME, "swedish"); I can get everything in a Swedish format!

But why couldn't one have this connected to whatever language pack one is using? At least I plan to mod it so... Or maybe have the user specify not only timezone but date format just like you do when for example install windows.

Anyway, just my thoughts.... :)

I was at least overjoyed to see that finally now we can change the first day of the week to monday! :) Now I only need to mod in the week number to the Calandar!

Cheers! :)

Link to comment
Share on other sites

doing so would make all the current offset times null and void and that function doesn't always return the right time for your area so letting people have the freedom to set it is an advantage, theres been a few times i've had to set a board to use a offset time even tho i'm on GMT which is down to server settings but still.

also the format is different so quite a few modifications would have to be made, mainly to the format_time function in ipsclass which is even more hassle.

Link to comment
Share on other sites

Just wanted to note that if gmdate() is being used you shouldn't change it to strftime(), you should use gmstrftime(). Also the format is different and you would need to convert date()'s format to strftime()'s format

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...