Saturday, May 22, 2010

Editing Calendar code

For anyone that has downloaded Dbar Speed or DBar Streamline, I did mess up on the calender coding. So it says that today Is the month of MAY instead of MARCH! :)

To fix that open the Widget.html and find this section:

function calendarDate ( )


var this_weekday_name_array = new Array("Su","Mo","Tu","We","Th","Fr","Sa")
var this_month_name_array = new Array("Jan","Feb","May","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"," Dec") //predefine month names
var this_date_timestamp = new Date()
var this_weekday = this_date_timestamp.getDay()
var this_month = this_date_timestamp.getMonth()
var this_date = this_date_timestamp.getDate()
var this_year = this_date_timestamp.getYear()

Just change "May" to "Mar", save SSH onto phone, and everything will be right in the world :) Sorry about that guys

No comments:

Post a Comment