How can I change the date format

Easy to use and free Joomla module to display weather with forecast from Yahoo.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Sun Jan 27, 2013 2:47 am
Hello!

Can You help me about that how can i change the date format in ver.1.6.6?

Now looks like this: 26 Jan 2013
I want to use it like this: 2013. Jan. 26.

Thank You!
User avatar
Fresh Boarder

Konrad M
Mon Jan 28, 2013 10:42 am
Hi,
unfortunetly this is extra customization and we don't support it.
User avatar

GK User
Mon Jan 28, 2013 4:18 pm
Oh! :(

Another option: how can i change the date to 'today', and 'yesterday'?

Tkanks!

Konrad M wrote:Hi,
unfortunetly this is extra customization and we don't support it.
User avatar
Fresh Boarder

Konrad M
Tue Jan 29, 2013 10:10 am
Can you explain a little more what would you like to achieve ?
User avatar

GK User
Tue Jan 29, 2013 1:59 pm
Yes. The date format in Wheather GK4 looks like this: 29 Jan 2013
This is not good for our site, because it's hungarian.
If we can't change the date format to this: 2013. Jan. 29., i would like to clear the date from the modul and replace with the words 'today', and 'tomorrow'. Off course In hungarian are 'ma' and 'holnap'.
We use only the 'next day forecast' option.



Konrad M wrote:Can you explain a little more what would you like to achieve ?
User avatar
Fresh Boarder

Konrad M
Tue Jan 29, 2013 2:20 pm
As I said it is an extra customization and we don't support it. It is hard coding and you probably need to edit modules/mod_weather_gk_4/tmpl/googleView.php
User avatar

GK User
Tue Jan 29, 2013 3:07 pm
Nothing about DATE format in googleView.php.
Thanks for nothing.



Konrad M wrote:As I said it is an extra customization and we don't support it. It is hard coding and you probably need to edit modules/mod_weather_gk_4/tmpl/googleView.php
User avatar
Fresh Boarder

GK User
Mon Feb 04, 2013 1:31 am
Can someone please tell us how to change the date format. I checked in every file I can find and can't change it. Thank you.
User avatar
Senior Boarder

Konrad M
Mon Feb 04, 2013 12:58 pm
@paulwallen as I said it is extra customization and we don't support it.
User avatar

GK User
Mon Feb 04, 2013 1:23 pm
I'm not trying to be condescending, but...

A template company with good support would use the time you took to write these emails that said you don't support it...to actually figure it out and help your customer...as most of the people in here are actually your customers even though this is a free extension.

That being said, what is someone supposed to do? I am willing to pay someone for this "customization", but if you're not even willing to help, it seems pretty ridiculous.
User avatar
Senior Boarder

Konrad M
Tue Feb 05, 2013 9:23 am
@paulwallen in previous posts I gave hint where to look at. It is modules/mod_weather_gk_4/tmpl/googleView.php, this part:

Code: Select all
<div class="gkwFday">


            <span class="gkwDay"><?php echo $this->parsedData['forecast'][$i]['day']; ?></span>


            <img src="<?php echo $this->icon($this->parsedData['forecast'][$i]['icon'], $this->config['forecast_icon_size']); ?>" title="<?php echo $this->parsedData['forecast'][$i]['condition']; ?>" alt="<?php echo $this->parsedData['forecast'][$i]['condition']; ?>" />


For example today date is:
Code: Select all
 $this->parsedData['forecast'][$i]['day']

So you need to set it to some variable and then parse it to achieve your look using php.
User avatar

GK User
Sun Feb 17, 2013 6:25 pm
It's in the Yahoo view, but I can't figure out how to change the date format still. I guess I'm going to give up.
I am willing to pay someone at Gavick to simply change the date format on this for me, please...
User avatar
Senior Boarder

Konrad M
Wed Feb 20, 2013 1:42 pm
@paulwallen please send me ftp details to konrad[at]gavick.com. I will let you know if I would be able to do it and how much it will cost.
User avatar


cron