[Galaxy S II Themes and Apps] tarobun:
Do you dislike the leading zero from the digital clock widget or dual clock widget? If so, you can now remove them with the following guide.

A) DigitalClock.apk

1. Decompile DigitalClock.odex with baksmali

2. Edit the file com/sec/android/widgetapp/digitalclock/DigitalClockWidgetProvider.smali

3. Search for the method drawHour()

.method private static drawHour(Landroid/content/Context;Landroid/widget/RemoteViews;Ljava/util/Date;Z)V
...
.end method

4. Add the following lines in red to the drawHour() method.

...
const v3, 0x7f070007
const/4 v4, 0x4

invoke-virtual {p1, v3, v4}, Landroid/widget/RemoteViews;->setViewVisibility(II)V

.line 202
:goto_13
const v3, 0x7f070002
invoke-static {v0}, Lcom/sec/android/widgetapp/digitalclock/DigitalClockWidgetProvider;->getClockNumberResourceId(I)I

move-result v4

[COLOR="Red"][b]#if hour1 is zero then draw transparent image (0x106000d)
if-nez v0, :cond_1f
const v4, 0x106000d

:cond_1f[/b][/COLOR]
invoke-virtual {p1, v3, v4}, Landroid/widget/RemoteViews;->setImageViewResource(II)V

.line 203
const v3, 0x7f070003
invoke-static {v1}, Lcom/sec/android/widgetapp/digitalclock/DigitalClockWidgetProvider;->getClockNumberResourceId(I)I
move-result v4

invoke-virtual {p1, v3, v4}, Landroid/widget/RemoteViews;->setImageViewResource(II)V
...

5. Recompile and push to /system/app

6. Restart phone.

B) DualClock.apk

1. Decompile DualClock.odex with baksmali

2. Edit the file com/sec/android/widgetapp/dualclock/DigitalDualClockView$DigitalClockView.smali

3. Search for the method update()

.method public update(Z)V
...
.end method

4. Add the following lines in red to the update() method.

...
iget-object v11, p0, Lcom/sec/android/widgetapp/dualclock/DigitalDualClockView$DigitalClockView;->iv_hour01:Landroid/widget/ImageView;
iget-object v12, p0, Lcom/sec/android/widgetapp/dualclock/DigitalDualClockView$DigitalClockView;->numbers:[I
aget v12, v12, v2

[COLOR="Red"][b]#if hour1 is zero then draw transparent image (0x106000d)
if-nez v2, :cond_b4
const v12, 0x106000d

:cond_b4[/b][/COLOR]
invoke-virtual {v11, v12}, Landroid/widget/ImageView;->setImageResource(I)V

.line 932
iget-object v11, p0, Lcom/sec/android/widgetapp/dualclock/DigitalDualClockView$DigitalClockView;->iv_hour02:Landroid/widget/ImageView;
iget-object v12, p0, Lcom/sec/android/widgetapp/dualclock/DigitalDualClockView$DigitalClockView;->numbers:[I
aget v12, v12, v3
...

5. Recompile and push to /system/app

6. Restart phone.

C) Lock screen

1. Decompile android.policy.odex with baksmali

2. Edit the file com/android/internal/policy/impl/UnlockClockGB.smali

3. Search for the method transformHourData()

.method private transformHourData(I)Ljava/lang/String;
...
.end method

4. In the transformHourData() method:

Find the line: (x2)

invoke-direct {p0, p1}, Lcom/android/internal/policy/impl/UnlockClockGB;->checkTimeValue(I)Ljava/lang/String;

Replace with this line: (x2)

[COLOR="Red"][b]#don't check time value (add zero prefix), convert to string directly
invoke-static {p1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;[/b][/COLOR]

5. Recompile and push to /system/framework

(if using dexopt-wrapper to convert back to odex, remember to add the last argument $BOOTCLASSPATH to the wrapper call)

6. Restart phone.

Enjoy!