Your ini file shouldn't look like that. The item you're writing to is supposed to be Test.
[Uptime]
Test=2 hours, 27 minutes
Should be what it looks like.
Your ini file looks like you're using
writeini uptime.ini Uptime %uptime
which would use the first word in %uptime as the item.
You could just use the first method and then use $readini() for the test item, but you could also just use something like
on *:sockread:uptime:{
var %uptime
sockread %uptime
tokenize 32 %uptime
if ($1 isnum) writeini uptime.ini uptime #channelorsomething %uptime
}