here it is
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //https://github.com/tzapu/WiFiManager
#include <EEPROM.h>
#include <TimeLib.h>
#include <time.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "";
tm * ts;
long FirstConnectTime, rawtime;
int IsFirstConnect;
char time_stamp[80];
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Linksys-01750";
char pass[] = "**********";
BlynkTimer timer;
void requestTime() {
Blynk.sendInternal("rtc", "sync");
}
BLYNK_WRITE(InternalPinRTC)
{
long t = param.asLong();
setTime(t);
Serial.print("\nUnix time: ");
Serial.print(t);
Serial.println();
rawtime = t;
/* Needs <time.h> to be included. Can give out formatted time.*/
ts = localtime ( &rawtime );
strftime (time_stamp, 80, "%a %I:%M %p %d %b %G %Z.", ts);
Serial.println(time_stamp);
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
requestTime();
}
void loop()
{
Blynk.run();
}